2025-02-19 21:27:53 -05:00
|
|
|
import { GiteaProfileCard } from "@/components/cards/dashboard/git/GiteaProfileCard"
|
|
|
|
import { LinkGitea } from "@/components/cards/dashboard/git/LinkGitea"
|
|
|
|
//import { CreateRepo } from "@/components/cards/dashboard/git/CreateRepo"
|
|
|
|
//import { ChangeUsername } from "@/components/cards/dashboard/git/ChangeUsername"
|
|
|
|
//import { ChangePassword } from "@/components/cards/dashboard/git/ChangePassword"
|
|
|
|
//import { ChangeEmail } from "@/components/cards/dashboard/git/ChangeEmail"
|
2025-02-16 15:28:17 -05:00
|
|
|
|
|
|
|
interface DashboardState {
|
|
|
|
gitUser: string;
|
|
|
|
gitAvatar?: string;
|
|
|
|
gitLastLogin?: string;
|
|
|
|
gitFollowerCt: number;
|
|
|
|
gitFollowingCt: number;
|
|
|
|
gitIsAdmin: boolean;
|
|
|
|
gitEmail?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const GitTab = ({ dashboardState }: { dashboardState: DashboardState }) => {
|
|
|
|
return (
|
|
|
|
<div>
|
2025-02-19 21:27:53 -05:00
|
|
|
<div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
|
|
{(dashboardState.gitUser && dashboardState.gitUser !== "Unlinked") && (
|
|
|
|
<GiteaProfileCard dashboardState={dashboardState} />
|
|
|
|
)}
|
|
|
|
<LinkGitea linked={!!dashboardState.gitUser && dashboardState.gitUser !== "Unlinked"} />
|
|
|
|
{/*
|
|
|
|
~-~-~-~-~-~-~-~-~-~-~-~DISABLED FOR NOW~-~-~-~-~-~-~-~-~-~-~-~
|
|
|
|
<ChangeUsername gitUser={dashboardState.gitUser} />
|
|
|
|
<ChangePassword />
|
|
|
|
<ChangeEmail gitEmail={dashboardState.gitEmail || ""} />
|
|
|
|
<CreateRepo />
|
|
|
|
*/}
|
2025-02-16 15:28:17 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|