From 8175e903fd9616db3a3f973480ed238388c85569 Mon Sep 17 00:00:00 2001 From: yiling Date: Mon, 1 Jun 2026 10:44:49 +0800 Subject: [PATCH] ui improvement --- src/ui/components/dual-sidebar.tsx | 6 +----- src/ui/routes/teams/$teamId/index.tsx | 13 ++++++------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/ui/components/dual-sidebar.tsx b/src/ui/components/dual-sidebar.tsx index 736e164c..e2741654 100644 --- a/src/ui/components/dual-sidebar.tsx +++ b/src/ui/components/dual-sidebar.tsx @@ -124,11 +124,7 @@ export const DualSidebar: React.FC = ({ children }) => { {item.props.badge} - +

{item.props.label}

diff --git a/src/ui/routes/teams/$teamId/index.tsx b/src/ui/routes/teams/$teamId/index.tsx index 92e1cd14..f227999b 100644 --- a/src/ui/routes/teams/$teamId/index.tsx +++ b/src/ui/routes/teams/$teamId/index.tsx @@ -1,8 +1,5 @@ import type { ProjectInfo } from '@/dtos/project' import { client } from '@/ui/api/client' -import { useMutation } from '@tanstack/react-query' -import { toast } from 'sonner' -import type { InferRequestType, InferResponseType } from 'hono/client' import { MembersDialog } from '@/ui/components/members-dialog' import { ProjectDialog } from '@/ui/components/project-dialog' import { SortDropdown } from '@/ui/components/sort-dropdown' @@ -25,14 +22,16 @@ import { DropdownMenuTrigger, } from '@/ui/components/ui/dropdown-menu' import { ShumaiLogo } from '@/ui/components/ui/icons' +import { Input } from '@/ui/components/ui/input' +import { Switch } from '@/ui/components/ui/switch' import { formatDateAgo } from '@/ui/lib/time' import { cn } from '@/ui/lib/utils' -import { useQuery, useSuspenseQuery, useQueryClient } from '@tanstack/react-query' +import { useMutation, useQuery, useQueryClient, useSuspenseQuery } from '@tanstack/react-query' import { createFileRoute, useNavigate } from '@tanstack/react-router' +import type { InferRequestType, InferResponseType } from 'hono/client' import { MoreHorizontal, PlusIcon } from 'lucide-react' import { useState } from 'react' -import { Switch } from '@/ui/components/ui/switch' -import { Input } from '@/ui/components/ui/input' +import { toast } from 'sonner' function TeamPage() { const { teamId } = Route.useParams() @@ -262,7 +261,7 @@ function TeamPage() { -
+
{projects.data?.map((project: ProjectInfo) => (