mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: user profile
This commit is contained in:
parent
8fad9b05e6
commit
a974141360
8 changed files with 77 additions and 0 deletions
3
src/renderer/src/declaration.d.ts
vendored
3
src/renderer/src/declaration.d.ts
vendored
|
@ -109,6 +109,9 @@ declare global {
|
|||
) => () => Electron.IpcRenderer;
|
||||
checkForUpdates: () => Promise<boolean>;
|
||||
restartAndInstallUpdate: () => Promise<void>;
|
||||
|
||||
/* Profile */
|
||||
getUserProfile: (username: string) => Promise<UserProfile | null>;
|
||||
}
|
||||
|
||||
interface Window {
|
||||
|
|
7
src/renderer/src/pages/profile/profile.css.tsx
Normal file
7
src/renderer/src/pages/profile/profile.css.tsx
Normal file
|
@ -0,0 +1,7 @@
|
|||
export const UserProfile = () => {
|
||||
return (
|
||||
<>
|
||||
<p>Tela do usuarioooooooo</p>
|
||||
</>
|
||||
);
|
||||
};
|
17
src/renderer/src/pages/profile/profile.tsx
Normal file
17
src/renderer/src/pages/profile/profile.tsx
Normal file
|
@ -0,0 +1,17 @@
|
|||
import { UserProfile } from "@types";
|
||||
import { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useParams } from "react-router-dom";
|
||||
|
||||
export const Profile = () => {
|
||||
const { username } = useParams();
|
||||
const [userProfile, setUserProfile] = useState<UserProfile>();
|
||||
|
||||
const { t } = useTranslation("profile");
|
||||
|
||||
return (
|
||||
<>
|
||||
<p>Tela do usuarioooooooo</p>
|
||||
</>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue