From 8616db7649adda25ebf6737d7a9a1c4156dac6fd Mon Sep 17 00:00:00 2001 From: Aidan Date: Mon, 24 Feb 2025 23:31:48 -0500 Subject: [PATCH] task: cleanup/linting --- app/account/dashboard/page.tsx | 2 +- app/account/layout.tsx | 2 ++ app/account/page.tsx | 2 -- components/cards/dashboard/git/ChangeEmail.tsx | 2 +- components/cards/dashboard/git/ChangePassword.tsx | 2 +- components/cards/dashboard/git/ChangeUsername.tsx | 2 +- components/cards/dashboard/git/CreateRepo.tsx | 7 +++++-- components/cards/dashboard/overview/LinkedAccounts.tsx | 2 +- 8 files changed, 12 insertions(+), 9 deletions(-) diff --git a/app/account/dashboard/page.tsx b/app/account/dashboard/page.tsx index 037c35d..bf770ff 100644 --- a/app/account/dashboard/page.tsx +++ b/app/account/dashboard/page.tsx @@ -53,7 +53,7 @@ export default function Dashboard() { } } - checkGitLinkStatus() + checkGitLinkStatus().then(r => r) }, []) return ( diff --git a/app/account/layout.tsx b/app/account/layout.tsx index 94c685c..83e5557 100644 --- a/app/account/layout.tsx +++ b/app/account/layout.tsx @@ -1,3 +1,5 @@ +import React from "react"; + export default function AccountLayout({ children, }: { diff --git a/app/account/page.tsx b/app/account/page.tsx index f712ed5..3fde9bd 100644 --- a/app/account/page.tsx +++ b/app/account/page.tsx @@ -9,6 +9,4 @@ export default async function Page() { } else { redirect("/account/login") } - - return null } \ No newline at end of file diff --git a/components/cards/dashboard/git/ChangeEmail.tsx b/components/cards/dashboard/git/ChangeEmail.tsx index 4454d88..01af5c1 100644 --- a/components/cards/dashboard/git/ChangeEmail.tsx +++ b/components/cards/dashboard/git/ChangeEmail.tsx @@ -1,6 +1,6 @@ "use client"; -import { useState } from "react" +import React, { useState } from "react" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { Input } from "@/components/ui/input" import { Button } from "@/components/ui/button" diff --git a/components/cards/dashboard/git/ChangePassword.tsx b/components/cards/dashboard/git/ChangePassword.tsx index 24ab506..a65aace 100644 --- a/components/cards/dashboard/git/ChangePassword.tsx +++ b/components/cards/dashboard/git/ChangePassword.tsx @@ -1,6 +1,6 @@ "use client"; -import { useState } from "react"; +import React, { useState } from "react"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { Button } from "@/components/ui/button"; diff --git a/components/cards/dashboard/git/ChangeUsername.tsx b/components/cards/dashboard/git/ChangeUsername.tsx index 6b4a844..de6ef22 100644 --- a/components/cards/dashboard/git/ChangeUsername.tsx +++ b/components/cards/dashboard/git/ChangeUsername.tsx @@ -1,6 +1,6 @@ "use client"; -import { useState } from "react" +import React, { useState } from "react" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { Input } from "@/components/ui/input" import { Button } from "@/components/ui/button" diff --git a/components/cards/dashboard/git/CreateRepo.tsx b/components/cards/dashboard/git/CreateRepo.tsx index 2a48e1d..7bcfd7f 100644 --- a/components/cards/dashboard/git/CreateRepo.tsx +++ b/components/cards/dashboard/git/CreateRepo.tsx @@ -1,6 +1,6 @@ "use client"; -import { useState } from "react" +import React, { useState } from "react" import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card" import { Label } from "@/components/ui/label" import { Input } from "@/components/ui/input" @@ -60,4 +60,7 @@ export function CreateRepo() { ) -} \ No newline at end of file +} + +export default CreateRepo; + diff --git a/components/cards/dashboard/overview/LinkedAccounts.tsx b/components/cards/dashboard/overview/LinkedAccounts.tsx index cb58479..c1157dd 100644 --- a/components/cards/dashboard/overview/LinkedAccounts.tsx +++ b/components/cards/dashboard/overview/LinkedAccounts.tsx @@ -37,7 +37,7 @@ export const LinkedAccounts = () => { } }; - fetchGitStatus() + fetchGitStatus().then(r => r) }, []); return (