Skip to content

Commit 8a336fe

Browse files
feat: renaming azure, home card, consistency
1 parent 668b74d commit 8a336fe

8 files changed

Lines changed: 40 additions & 20 deletions

File tree

src/app/dashboard/(active)/assoc/page.tsx

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/app/dashboard/(active)/assoc/members/_components/set-assoc-number-dialog.tsx renamed to src/app/dashboard/(active)/azure/members/_components/set-assoc-number-dialog.tsx

File renamed without changes.
File renamed without changes.

src/app/dashboard/(active)/assoc/members/page.tsx renamed to src/app/dashboard/(active)/azure/members/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default async function AssocMembers() {
1111
void qc.prefetchQuery(trpc.azure.members.getAll.queryOptions())
1212
return (
1313
<div className="container p-8">
14-
<Link href="/dashboard/assoc" className="flex gap-1 items-center text-muted-foreground mb-2 hover:underline">
14+
<Link href="/dashboard/azure" className="flex gap-1 items-center text-muted-foreground mb-2 hover:underline">
1515
<ArrowLeft size={16} /> Back
1616
</Link>
1717
<ErrorBoundary fallback={<div>Something went wrong</div>}>
File renamed without changes.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { UsersRound } from "lucide-react"
2+
import Link from "next/link"
3+
import { Card, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
4+
5+
export default function AssocIndex() {
6+
return (
7+
<div className="container py-8 px-2 flex flex-col gap-4">
8+
<h2 className="text-accent-foreground text-3xl font-bold">Azure</h2>
9+
<div className="gap-4 flex justify-start flex-wrap items-center">
10+
<Link href="/dashboard/azure/members">
11+
<Card className="w-90 hover:bg-accent transition-colors">
12+
<CardHeader>
13+
<CardTitle className="flex gap-2 items-center">
14+
<UsersRound size={20} />
15+
Members
16+
</CardTitle>
17+
<CardDescription>Manage all @polinetwork.org accounts</CardDescription>
18+
</CardHeader>
19+
</Card>
20+
</Link>
21+
</div>
22+
</div>
23+
)
24+
}

src/app/dashboard/(active)/page.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
1+
import Link from "next/link"
2+
import { Card, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
13
import { getServerSession } from "@/server/auth"
24
import { CompleteProfile } from "./complete-profile"
35

46
export default async function AdminHome() {
57
const { data: session } = await getServerSession()
68
return (
79
session && (
8-
<div className="container mx-auto px-4 py-8">
10+
<div className="container py-8 px-2">
911
<CompleteProfile user={session.user} />
1012
<h2 className="text-accent-foreground mb-4 text-3xl font-bold">Home</h2>
13+
14+
<div className="gap-4 flex justify-start flex-wrap items-center">
15+
<Link href="/dashboard/azure">
16+
<Card className="w-90 hover:bg-accent transition-colors">
17+
<CardHeader>
18+
<CardTitle>Azure</CardTitle>
19+
<CardDescription>Manage Azure related things</CardDescription>
20+
</CardHeader>
21+
</Card>
22+
</Link>
23+
</div>
1124
</div>
1225
)
1326
)

src/components/admin-header/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function AdminHeader() {
1212
<Link href="/dashboard" className="hover:underline">
1313
Home
1414
</Link>
15-
<Link href="/dashboard/assoc" className="hover:underline">
15+
<Link href="/dashboard/azure" className="hover:underline">
1616
Azure
1717
</Link>
1818
</nav>

0 commit comments

Comments
 (0)