Skip to content

Commit 81e8dd1

Browse files
committed
refactor(Sidebar): remove unused menu and links data structures
1 parent 112dbf5 commit 81e8dd1

File tree

1 file changed

+1
-81
lines changed

1 file changed

+1
-81
lines changed

src/routes/(app)/Sidebar.svelte

Lines changed: 1 addition & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -36,80 +36,6 @@
3636
activeMainSidebar = navigation.to?.url.pathname ?? '';
3737
});
3838
39-
let menu = [
40-
{ name: 'Dashboard', icon: 'ChartPieOutline', href: '/app/dashboard' },
41-
{ name: 'Leads', icon: 'FunnelOutline', href: '/app/leads' },
42-
{ name: 'Contacts', icon: 'UserOutline', href: '/app/contacts' },
43-
{
44-
name: 'Accounts',
45-
icon: 'BuildingOfficeOutline',
46-
children: {
47-
'All Accounts': '/app/accounts',
48-
'New Account': '/app/accounts/new',
49-
'Account Opportunities': '/app/accounts/opportunities',
50-
'Deleted/Archived Accounts': '/app/accounts/deleted'
51-
}
52-
},
53-
{
54-
name: 'Opportunities',
55-
icon: 'CurrencyDollarOutline',
56-
children: {
57-
'All Opportunities': '/app/opportunities',
58-
'New Opportunity': '/app/opportunities/new'
59-
}
60-
},
61-
{
62-
name: 'Cases',
63-
icon: 'LifebuoyOutline',
64-
children: {
65-
'All Cases': '/app/cases',
66-
'New Case': '/app/cases/new'
67-
}
68-
},
69-
{
70-
name: 'Tasks',
71-
icon: 'ClipboardOutline',
72-
children: {
73-
'All Tasks': '/app/tasks',
74-
'New Task': '/app/tasks/new',
75-
Calendar: '/app/tasks/calendar'
76-
}
77-
},
78-
{
79-
name: 'Invoices',
80-
icon: 'ReceiptOutline',
81-
children: {
82-
'All Invoices': '/app/invoices',
83-
'Create Invoice': '/app/invoices/new'
84-
}
85-
},
86-
{
87-
name: 'Reports',
88-
icon: 'ChartBarOutline',
89-
children: {
90-
'Sales Reports': '/app/reports/sales',
91-
'Case Stats': '/app/reports/cases',
92-
'Invoice Trends': '/app/reports/invoices'
93-
}
94-
},
95-
{
96-
name: 'Settings',
97-
icon: 'CogOutline',
98-
children: {
99-
'User Management': '/app/settings/users',
100-
'Custom Fields': '/app/settings/fields',
101-
Integrations: '/app/settings/integrations'
102-
}
103-
}
104-
];
105-
let links = [
106-
{
107-
label: 'Support',
108-
href: 'https://discord.gg/',
109-
icon: LifeSaverSolid
110-
}
111-
];
112-
let dropdowns = Object.fromEntries(Object.keys(menu).map((x) => [x, false]));
11339
</script>
11440
11541
<Sidebar
@@ -193,13 +119,7 @@
193119
/>
194120
</SidebarDropdownWrapper>
195121
</SidebarGroup>
196-
<SidebarGroup ulClass={groupClass}>
197-
{#each links as { label, href, icon } (label)}
198-
<SidebarItem {label} {href} spanClass="ml-3" class={itemClass} target="_blank">
199-
<svelte:component this={icon} slot="icon" class={iconClass} />
200-
</SidebarItem>
201-
{/each}
202-
</SidebarGroup>
122+
203123
</nav>
204124
</SidebarWrapper>
205125
</Sidebar>

0 commit comments

Comments
 (0)