pramudya-yb commited on
Commit ·
abdb08c
1
Parent(s): fe5ae84
Fix syntax errors and remove remaining community links
Browse files
apps/web/src/components/routes/LandingPage.tsx
CHANGED
|
@@ -77,9 +77,7 @@ export function LandingPage() {
|
|
| 77 |
</div>
|
| 78 |
</div>
|
| 79 |
</section>
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
|
| 84 |
</div>
|
| 85 |
);
|
|
|
|
| 77 |
</div>
|
| 78 |
</div>
|
| 79 |
</section>
|
| 80 |
+
</main>
|
|
|
|
|
|
|
| 81 |
|
| 82 |
</div>
|
| 83 |
);
|
apps/web/src/components/settings/AccountSettings.tsx
CHANGED
|
@@ -6,7 +6,7 @@ import { Button } from "@pram/ui/components/button";
|
|
| 6 |
import { toast } from "sonner";
|
| 7 |
import { getErrorMessage } from "@/lib/error-utils";
|
| 8 |
import { authClient } from "@/lib/auth-client";
|
| 9 |
-
|
| 10 |
|
| 11 |
export function AccountSettings() {
|
| 12 |
const { data: session } = authClient.useSession();
|
|
@@ -160,7 +160,7 @@ export function AccountSettings() {
|
|
| 160 |
</CardContent>
|
| 161 |
</Card>
|
| 162 |
|
| 163 |
-
|
| 164 |
</div>
|
| 165 |
);
|
| 166 |
}
|
|
|
|
| 6 |
import { toast } from "sonner";
|
| 7 |
import { getErrorMessage } from "@/lib/error-utils";
|
| 8 |
import { authClient } from "@/lib/auth-client";
|
| 9 |
+
|
| 10 |
|
| 11 |
export function AccountSettings() {
|
| 12 |
const { data: session } = authClient.useSession();
|
|
|
|
| 160 |
</CardContent>
|
| 161 |
</Card>
|
| 162 |
|
| 163 |
+
|
| 164 |
</div>
|
| 165 |
);
|
| 166 |
}
|
apps/web/src/components/settings/CommunityCard.tsx
DELETED
|
@@ -1,18 +0,0 @@
|
|
| 1 |
-
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@pram/ui/components/card";
|
| 2 |
-
import { CommunityChannelList } from "@/components/CommunityChannelList";
|
| 3 |
-
|
| 4 |
-
export function CommunityCard() {
|
| 5 |
-
return (
|
| 6 |
-
<Card className="clay-shadow bg-[var(--pure-white)] border-2 border-[var(--oat-border)] rounded-[var(--radius-xl)]">
|
| 7 |
-
<CardHeader>
|
| 8 |
-
<CardTitle className="font-headline text-[var(--clay-black)]">Komunitas</CardTitle>
|
| 9 |
-
<CardDescription className="text-[var(--warm-charcoal)]">
|
| 10 |
-
WhatsApp untuk chat cepat; Discord untuk diskusi terstruktur (segera hadir).
|
| 11 |
-
</CardDescription>
|
| 12 |
-
</CardHeader>
|
| 13 |
-
<CardContent>
|
| 14 |
-
<CommunityChannelList variant="card" />
|
| 15 |
-
</CardContent>
|
| 16 |
-
</Card>
|
| 17 |
-
);
|
| 18 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
apps/web/src/components/sidebar.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import { authClient } from "@/lib/auth-client";
|
|
| 5 |
import { trpc } from "@/utils/trpc";
|
| 6 |
import { useSidebar } from "@/hooks/use-sidebar";
|
| 7 |
import { triggerGlobalTour } from "@/components/TourGuide";
|
| 8 |
-
|
| 9 |
|
| 10 |
interface NavItem {
|
| 11 |
to: string;
|
|
@@ -92,7 +92,7 @@ export function Sidebar() {
|
|
| 92 |
const { collapsed, toggle } = useSidebar();
|
| 93 |
const { data: session } = authClient.useSession();
|
| 94 |
const isLoggedIn = !!session;
|
| 95 |
-
|
| 96 |
|
| 97 |
const { data: adminData } = useQuery(
|
| 98 |
trpc.admin.isAdmin.queryOptions(undefined, { enabled: isLoggedIn }),
|
|
@@ -106,7 +106,6 @@ export function Sidebar() {
|
|
| 106 |
|
| 107 |
return (
|
| 108 |
<>
|
| 109 |
-
<CommunityModal isOpen={communityModalOpen} onOpenChange={setCommunityModalOpen} />
|
| 110 |
{/* Desktop Sidebar */}
|
| 111 |
<aside
|
| 112 |
className={`fixed left-0 top-0 h-full flex flex-col z-40 bg-[var(--warm-cream)] border-r border-[var(--oat-border)] hidden md:flex transition-all duration-300 overflow-y-auto ${
|
|
@@ -180,18 +179,7 @@ export function Sidebar() {
|
|
| 180 |
);
|
| 181 |
})}
|
| 182 |
|
| 183 |
-
|
| 184 |
-
type="button"
|
| 185 |
-
onClick={() => setCommunityModalOpen(true)}
|
| 186 |
-
aria-label="Komunitas WhatsApp"
|
| 187 |
-
className={`flex items-center gap-3 rounded-[var(--radius-lg)] transition-all clay-hover cursor-pointer text-[var(--warm-charcoal)] hover:bg-[var(--oat-light)] hover:text-[var(--clay-black)] w-full ${
|
| 188 |
-
collapsed ? "justify-center py-3 px-2" : "py-3 px-3 text-left"
|
| 189 |
-
}`}
|
| 190 |
-
title={collapsed ? "Komunitas" : undefined}
|
| 191 |
-
>
|
| 192 |
-
<NavIcon name="forum" />
|
| 193 |
-
{!collapsed && <span className="text-sm font-medium">Komunitas</span>}
|
| 194 |
-
</button>
|
| 195 |
|
| 196 |
{/* Help Tour Button */}
|
| 197 |
<button
|
|
|
|
| 5 |
import { trpc } from "@/utils/trpc";
|
| 6 |
import { useSidebar } from "@/hooks/use-sidebar";
|
| 7 |
import { triggerGlobalTour } from "@/components/TourGuide";
|
| 8 |
+
|
| 9 |
|
| 10 |
interface NavItem {
|
| 11 |
to: string;
|
|
|
|
| 92 |
const { collapsed, toggle } = useSidebar();
|
| 93 |
const { data: session } = authClient.useSession();
|
| 94 |
const isLoggedIn = !!session;
|
| 95 |
+
|
| 96 |
|
| 97 |
const { data: adminData } = useQuery(
|
| 98 |
trpc.admin.isAdmin.queryOptions(undefined, { enabled: isLoggedIn }),
|
|
|
|
| 106 |
|
| 107 |
return (
|
| 108 |
<>
|
|
|
|
| 109 |
{/* Desktop Sidebar */}
|
| 110 |
<aside
|
| 111 |
className={`fixed left-0 top-0 h-full flex flex-col z-40 bg-[var(--warm-cream)] border-r border-[var(--oat-border)] hidden md:flex transition-all duration-300 overflow-y-auto ${
|
|
|
|
| 179 |
);
|
| 180 |
})}
|
| 181 |
|
| 182 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
|
| 184 |
{/* Help Tour Button */}
|
| 185 |
<button
|
apps/web/src/routes/__root.tsx
CHANGED
|
@@ -62,7 +62,7 @@ export const Route = createRootRouteWithContext<RouterAppContext>()({
|
|
| 62 |
{ rel: "preconnect", href: "https://fonts.gstatic.com", crossOrigin: "anonymous" as const },
|
| 63 |
{ rel: "stylesheet", href: "https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Inter:wght@400;500;600&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap" },
|
| 64 |
],
|
| 65 |
-
|
| 66 |
{
|
| 67 |
type: "application/ld+json",
|
| 68 |
children: JSON.stringify({
|
|
|
|
| 62 |
{ rel: "preconnect", href: "https://fonts.gstatic.com", crossOrigin: "anonymous" as const },
|
| 63 |
{ rel: "stylesheet", href: "https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Inter:wght@400;500;600&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap" },
|
| 64 |
],
|
| 65 |
+
scripts: [
|
| 66 |
{
|
| 67 |
type: "application/ld+json",
|
| 68 |
children: JSON.stringify({
|