feat: user profile

This commit is contained in:
Zamitto 2024-06-11 22:09:24 -03:00
parent 8fad9b05e6
commit a974141360
8 changed files with 77 additions and 0 deletions

View file

@ -109,6 +109,9 @@ declare global {
) => () => Electron.IpcRenderer;
checkForUpdates: () => Promise<boolean>;
restartAndInstallUpdate: () => Promise<void>;
/* Profile */
getUserProfile: (username: string) => Promise<UserProfile | null>;
}
interface Window {

View file

@ -0,0 +1,7 @@
export const UserProfile = () => {
return (
<>
<p>Tela do usuarioooooooo</p>
</>
);
};

View 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>
</>
);
};