1
- import { ProFeatureGateDialog } from '@/components/ProFeatureGateDialog' ;
2
1
import { SidebarLink } from '@/components/SidebarLink' ;
3
- import { SubscriptionCardSmall } from '@/components/SubscriptionCardSmall' ;
4
- import { T } from '@/components/ui/Typography' ;
5
- import { fetchSlimOrganizations , getOrganizationSlugByOrganizationId } from '@/data/user/organizations' ;
6
2
import { cn } from '@/utils/cn' ;
7
3
import { notFound } from 'next/navigation' ;
8
4
import { Suspense } from 'react' ;
9
5
10
6
import { DesktopSidebarFallback } from '@/components/SidebarComponents/SidebarFallback' ;
11
7
import { SwitcherAndToggle } from '@/components/SidebarComponents/SidebarLogo' ;
8
+ import { fetchSlimOrganizations , getOrganizationSlugByOrganizationId } from '@/data/user/organizations' ;
12
9
import { organizationParamSchema } from '@/utils/zod-schemas/params' ;
13
- import { DollarSign , FileBox , Home , Layers , Settings , UserRound } from 'lucide-react' ;
10
+ import { Activity , FileText , GitCompare , Home , Layers , MessageCircle , Settings , Shield } from 'lucide-react' ;
14
11
15
12
async function OrganizationSidebarInternal ( {
16
13
organizationId,
@@ -24,58 +21,56 @@ async function OrganizationSidebarInternal({
24
21
return (
25
22
< div
26
23
className = { cn (
27
- 'flex flex-col justify-between h-full' ,
28
- 'lg:px-3 lg:py-4 lg:pt-2.5 ' ,
24
+ 'flex flex-col h-full' ,
25
+ 'lg:px-3 lg:py-4' ,
29
26
) }
30
27
>
31
- < div >
32
- < div className = "flex justify-between items-center" >
33
- < SwitcherAndToggle organizationId = { organizationId } slimOrganizations = { slimOrganizations } />
34
- </ div >
35
- < div className = "flex flex-col gap-6 h-full overflow-y-auto mt-4" >
36
- < div >
37
- < SidebarLink
38
- label = "Home"
39
- href = { `/org/${ organizationId } ` }
40
- icon = { < Home className = "h-5 w-5" /> }
41
- />
42
- < SidebarLink
43
- label = "Projects"
44
- href = { `/org/${ organizationId } /projects` }
45
- icon = { < Layers className = "h-5 w-5" /> }
46
- />
47
- < SidebarLink
48
- label = "Settings"
49
- href = { `/org/${ organizationId } /settings` }
50
- icon = { < Settings className = "h-5 w-5" /> }
51
- />
52
- < SidebarLink
53
- label = "Members"
54
- href = { `/org/${ organizationId } /settings/members` }
55
- icon = { < UserRound className = "h-5 w-5" /> }
56
- />
57
- < SidebarLink
58
- label = "Billing"
59
- href = { `/org/${ organizationId } /settings/billing` }
60
- icon = { < DollarSign className = "h-5 w-5" /> }
61
- />
62
- < Suspense >
63
- < ProFeatureGateDialog
64
- organizationId = { organizationId }
65
- label = "Feature Pro"
66
- icon = { < FileBox className = "h-5 w-5" /> }
67
- />
68
- </ Suspense >
69
- </ div >
70
- { /* <TeamsList organizationId={organizationId} /> */ }
71
- </ div >
72
- </ div >
73
- < div className = "flex flex-col gap-4" >
74
- < Suspense fallback = { < T . P > Loading subscription details...</ T . P > } >
75
- < SubscriptionCardSmall organizationSlug = { organizationSlug } organizationId = { organizationId } />
76
- </ Suspense >
77
28
29
+ < div className = "flex justify-between items-center mb-4" >
30
+ < SwitcherAndToggle organizationId = { organizationId } slimOrganizations = { slimOrganizations } />
31
+ </ div >
78
32
33
+ < div className = "flex flex-col gap-0" >
34
+ < SidebarLink
35
+ label = "Home"
36
+ href = { `/org/${ organizationId } ` }
37
+ icon = { < Home className = "size-4 text-foreground" /> }
38
+ />
39
+ < SidebarLink
40
+ label = "Projects"
41
+ href = { `/org/${ organizationId } /projects` }
42
+ icon = { < Layers className = "size-4 text-foreground" /> }
43
+ />
44
+ < SidebarLink
45
+ label = "Activity"
46
+ href = { `/org/${ organizationId } /activity` }
47
+ icon = { < Activity className = "size-4 text-foreground" /> }
48
+ />
49
+ < SidebarLink
50
+ label = "Policies"
51
+ href = { `/org/${ organizationId } /policies` }
52
+ icon = { < Shield className = "size-4 text-foreground" /> }
53
+ />
54
+ < SidebarLink
55
+ label = "Drift"
56
+ href = { `/org/${ organizationId } /drift` }
57
+ icon = { < GitCompare className = "size-4 text-foreground" /> }
58
+ />
59
+ < SidebarLink
60
+ label = "Docs"
61
+ href = { `/org/${ organizationId } /docs` }
62
+ icon = { < FileText className = "size-4 text-foreground" /> }
63
+ />
64
+ < SidebarLink
65
+ label = "Admin"
66
+ href = { `/org/${ organizationId } /admin` }
67
+ icon = { < Settings className = "size-4 text-foreground" /> }
68
+ />
69
+ < SidebarLink
70
+ label = "Ask in Slack"
71
+ href = "#"
72
+ icon = { < MessageCircle className = "size-4 text-foreground" /> }
73
+ />
79
74
</ div >
80
75
</ div >
81
76
) ;
0 commit comments