From 62456f41288eb0f03c5092d36610d566f275c8b5 Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Tue, 3 Jun 2025 20:06:44 +0700 Subject: selectQuestionById, useMemo selector (MultiChoice.choices makes a lot of lookup). Setting up the Questions view to do Pagination to tab through available questions and view one at a time --- src/components/app-sidebar.tsx | 84 +----------------------------------------- src/components/nav-main.tsx | 6 +-- src/components/site-header.tsx | 2 +- 3 files changed, 6 insertions(+), 86 deletions(-) (limited to 'src/components') diff --git a/src/components/app-sidebar.tsx b/src/components/app-sidebar.tsx index d2bc03e..e8cbd4c 100644 --- a/src/components/app-sidebar.tsx +++ b/src/components/app-sidebar.tsx @@ -1,19 +1,9 @@ "use client" import * as React from "react" -import {CircleDollarSign, MessageCircle, MoreVerticalIcon, SquareStack, UserCircleIcon} from "lucide-react" +import {CircleDollarSign, MessageCircle, SquareStack} from "lucide-react" import {NavMain} from "@/components/nav-main" -import {Avatar, AvatarFallback, AvatarImage,} from "@/components/ui/avatar" -import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuGroup, - DropdownMenuItem, - DropdownMenuLabel, - DropdownMenuSeparator, - DropdownMenuTrigger, -} from "@/components/ui/dropdown-menu" import { Sidebar, SidebarContent, @@ -34,15 +24,11 @@ export function AppSidebar({...props}: React.ComponentProps) { const {isMobile} = useSidebar() - // - // - // - return ( - + ) { - - - - - - - Support - - - - - - - - - - - - - - IW - -
- Ironwood User - - ironwood@example.com - -
- -
-
- - -
- - - IW - -
- Ironwood User - - ironwood@example.com - -
-
-
- - - - - Account - - - -
-
-
-
) } diff --git a/src/components/nav-main.tsx b/src/components/nav-main.tsx index 873d236..12a60aa 100644 --- a/src/components/nav-main.tsx +++ b/src/components/nav-main.tsx @@ -19,7 +19,7 @@ export function NavMain() { - dispatch(setPage("offerwall"))} > @@ -29,7 +29,7 @@ export function NavMain() { - dispatch(setPage("questions"))} > @@ -38,7 +38,7 @@ export function NavMain() { - + Community diff --git a/src/components/site-header.tsx b/src/components/site-header.tsx index 5bc5ca7..0000e5f 100644 --- a/src/components/site-header.tsx +++ b/src/components/site-header.tsx @@ -14,7 +14,7 @@ const SiteHeader = () => { orientation="vertical" className="mx-2 data-[orientation=vertical]:h-4" /> -

"activeView"

+

Offerwall

-- cgit v1.2.3