Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-bach committed May 20, 2024
1 parent 5e7937f commit aac814c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ X Style verify email
X Add update password
X Add reset password - https://github.com/alexrusin/nextjs-cognito-auth/tree/5-reset-password-end
X Add resend verification email
- Clean up dashboard template
X Clean up dashboard template
- Deploy to AWS (SST)
23 changes: 10 additions & 13 deletions frontend/src/components/sidebar/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ import { Avatar, Tooltip } from '@nextui-org/react';
import { CompaniesDropdown } from './companies-dropdown';
import { HomeIcon } from '../icons/sidebar/home-icon';
import { PaymentsIcon } from '../icons/sidebar/payments-icon';
import { BalanceIcon } from '../icons/sidebar/balance-icon';
import { AccountsIcon } from '../icons/sidebar/accounts-icon';
import { CustomersIcon } from '../icons/sidebar/customers-icon';
import { ProductsIcon } from '../icons/sidebar/products-icon';
import { ReportsIcon } from '../icons/sidebar/reports-icon';
import { DevIcon } from '../icons/sidebar/dev-icon';
import { ViewIcon } from '../icons/sidebar/view-icon';
import { SettingsIcon } from '../icons/sidebar/settings-icon';
import { CollapseItems } from './collapse-items';
Expand All @@ -19,7 +17,6 @@ import { FilterIcon } from '../icons/sidebar/filter-icon';
import { useSidebarContext } from '../layout/layout-context';
import { ChangeLogIcon } from '../icons/sidebar/changelog-icon';
import { usePathname } from 'next/navigation';
import { UserIcon } from 'lucide-react';

export const SidebarWrapper = () => {
const pathname = usePathname();
Expand All @@ -40,22 +37,22 @@ export const SidebarWrapper = () => {
<div className={Sidebar.Body()}>
<SidebarItem title='Home' icon={<HomeIcon />} isActive={pathname === '/dashboard'} href='/dashboard' />
<SidebarMenu title='Main Menu'>
<CollapseItems icon={<AccountsIcon />} items={['Banks Accounts', 'Credit Cards', 'Loans']} title='Balances' />
<CollapseItems icon={<AccountsIcon />} items={['Checking', 'Credit Cards', 'Loans']} title='Banking' />
<SidebarItem isActive={pathname === '/investments'} title='Investments' icon={<PaymentsIcon />} />
<SidebarItem isActive={pathname === '/contacts'} title='Contacts' icon={<UserIcon />} href='contacts' />
<SidebarItem isActive={pathname === '/customers'} title='Customers' icon={<CustomersIcon />} />
<SidebarItem isActive={pathname === '/products'} title='Products' icon={<ProductsIcon />} />
<SidebarItem isActive={pathname === '/reports'} title='Reports' icon={<ReportsIcon />} />
<SidebarItem isActive={pathname === '/assets'} title='Property & Debt' icon={<CustomersIcon />} />
<SidebarItem isActive={pathname === '/accounts/manage'} title='Manage' icon={<SettingsIcon />} />
</SidebarMenu>

<SidebarMenu title='General'>
<SidebarItem isActive={pathname === '/developers'} title='Developers' icon={<DevIcon />} />
<SidebarItem isActive={pathname === '/view'} title='Test Data' icon={<ViewIcon />} />
<SidebarItem isActive={pathname === '/settings'} title='Settings' icon={<SettingsIcon />} />
<SidebarMenu title='Analytics'>
<SidebarItem isActive={pathname === '/reports'} title='Reports' icon={<ReportsIcon />} />
<SidebarItem isActive={pathname === '/queries'} title='Queries' icon={<ViewIcon />} />
</SidebarMenu>

<SidebarMenu title='Updates'>
<SidebarMenu title='Configuration'>
<SidebarItem isActive={pathname === '/products'} title='Categories' icon={<ProductsIcon />} />
<SidebarItem isActive={pathname === '/products'} title='Payees' icon={<CustomersIcon />} />
<SidebarItem isActive={pathname === '/changelog'} title='Changelog' icon={<ChangeLogIcon />} />
<SidebarItem isActive={pathname === '/settings'} title='Settings' icon={<SettingsIcon />} />
</SidebarMenu>
</div>
<div className={Sidebar.Footer()}>
Expand Down

0 comments on commit aac814c

Please sign in to comment.