mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-06 08:04:37 +00:00
fix(webui): address various UI issues in signup, settings, and sidebar
This commit is contained in:
@@ -5,7 +5,6 @@ import { TopNav } from '@/ui/components/top-nav'
|
||||
import { HomeIcon, NotificationFillIcon, UploadCloudIcon } from '@/ui/components/ui/icons'
|
||||
import { Toaster } from '@/ui/components/ui/sonner'
|
||||
import { UploadTasks } from '@/ui/components/upload-tasks'
|
||||
import { usePermissions } from '@/ui/hooks/use-permissions'
|
||||
import { useAuthStore } from '@/ui/stores/auth'
|
||||
import { useTeamContextStore } from '@/ui/stores/team-context'
|
||||
import { useUploadStore } from '@/ui/stores/upload'
|
||||
@@ -21,7 +20,6 @@ import { useEffect } from 'react'
|
||||
function RootComponent() {
|
||||
const user = useAuthStore((state) => state.user)
|
||||
const { uploading } = useUploadStore()
|
||||
const { canEdit } = usePermissions()
|
||||
const pathname = useRouterState({ select: (s) => s.location.pathname })
|
||||
const navigate = useNavigate()
|
||||
|
||||
@@ -90,19 +88,17 @@ function RootComponent() {
|
||||
<DualSidebarItem icon={<NotificationFillIcon />} label="Notifications" badge={badge}>
|
||||
<NotificationList />
|
||||
</DualSidebarItem>
|
||||
{canEdit && (
|
||||
<DualSidebarItem
|
||||
icon={
|
||||
<UploadCloudIcon
|
||||
uploading={uploading > 0}
|
||||
className={uploading > 0 ? 'text-blue-500' : ''}
|
||||
/>
|
||||
}
|
||||
label="Uploads"
|
||||
>
|
||||
<UploadTasks />
|
||||
</DualSidebarItem>
|
||||
)}
|
||||
<DualSidebarItem
|
||||
icon={
|
||||
<UploadCloudIcon
|
||||
uploading={uploading > 0}
|
||||
className={uploading > 0 ? 'text-blue-500' : ''}
|
||||
/>
|
||||
}
|
||||
label="Uploads"
|
||||
>
|
||||
<UploadTasks />
|
||||
</DualSidebarItem>
|
||||
</DualSidebar>
|
||||
<div className="flex flex-col flex-1 md:pl-16 overflow-hidden relative">
|
||||
<TopNav />
|
||||
|
||||
Reference in New Issue
Block a user