rename API files
This commit is contained in:
parent
c8b8435b69
commit
c3998ca039
11 changed files with 46 additions and 36 deletions
|
|
@ -1,7 +1,7 @@
|
|||
// src/components/basics/SettingsMenu.tsx
|
||||
import {X} from "lucide-react";
|
||||
import {useNavigate} from "react-router-dom";
|
||||
import type {LoginResponseDto} from "../api/dtos/LoginResponseDto";
|
||||
import type {LoginResponse} from "../api/dtos/LoginResponse.ts";
|
||||
import {getUserUrl} from "../routes.ts";
|
||||
|
||||
/**
|
||||
|
|
@ -15,7 +15,7 @@ type SettingsMenuProps = {
|
|||
export function SettingsMenu({onClose}: SettingsMenuProps) {
|
||||
const navigate = useNavigate();
|
||||
const storedSession = localStorage.getItem("session");
|
||||
const loginData: LoginResponseDto | null = storedSession
|
||||
const loginData: LoginResponse | null = storedSession
|
||||
? JSON.parse(storedSession)
|
||||
: null;
|
||||
const user = loginData?.userData;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue