diff --git a/app/components/layout/header.tsx b/app/components/layout/header.tsx index 5b74c1a..fd9af3e 100644 --- a/app/components/layout/header.tsx +++ b/app/components/layout/header.tsx @@ -138,7 +138,7 @@ export function HeaderNav({ ) } -function UserDropdown() { +export function UserDropdown() { const user = useUser() const submit = useSubmit() const formRef = useRef(null) @@ -149,16 +149,22 @@ function UserDropdown() {
e.preventDefault()} - className="relative rounded-full border border-primary bg-secondary p-1" + className="relative" >
- {user.name + {/* {user.name ?? user.username} */} @@ -170,7 +176,7 @@ function UserDropdown() { align="end" className="min-w-[16rem] rounded-sm border border-primary" > - + - {/*
-
BACKER
- - - Home - - - - - Discover - - - - - Backed Projects - - -
*/} -
+
+
DASHBOARD
+
-
- - - - - - BloomBacker - -
+ + ䷸ BookBreeze +
    {menuItems?.map(item => (
  • -
    - {item.title} -
    + {item.title && ( +
    + {item.title} +
    + )} -
      +
        {item.items.map(subItem => (
      • - + `flex rounded-lg p-1 px-2 hover:bg-border ${isActive ? 'bg-border' : ''}` + } + end > {subItem.title} - +
      • ))}
      diff --git a/app/components/search-bar.tsx b/app/components/search-bar.tsx index 3b0522d..3a0a173 100644 --- a/app/components/search-bar.tsx +++ b/app/components/search-bar.tsx @@ -59,7 +59,7 @@ export function SearchBar({ id={id} defaultValue={defaultValue} placeholder="Search" - className="w-full" + className="h-full w-full" // autoFocus={autoFocusSearch} />
diff --git a/app/components/theme-switcher.tsx b/app/components/theme-switcher.tsx index 24d6a8c..b2d64ee 100644 --- a/app/components/theme-switcher.tsx +++ b/app/components/theme-switcher.tsx @@ -7,6 +7,7 @@ import { } from '#app/root' import { type Theme } from '#app/utils/theme.server' import { Icon } from './ui/icon' +import { Button } from './ui/button' // export function ThemeSwitch({ // userPreference, @@ -51,12 +52,14 @@ export function ThemeSwitch() {
- +
) diff --git a/app/components/ui/icon.tsx b/app/components/ui/icon.tsx index fb0108f..9e04a7b 100644 --- a/app/components/ui/icon.tsx +++ b/app/components/ui/icon.tsx @@ -46,9 +46,7 @@ export function Icon({ }) { if (children) { return ( - + {children} @@ -57,7 +55,7 @@ export function Icon({ return ( diff --git a/app/root.tsx b/app/root.tsx index 34b6b37..0d067b6 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -215,13 +215,13 @@ function App() {
-
+ {/*

-
+
*/}
diff --git a/app/routes/c.$companyId+/_layout_company.tsx b/app/routes/c.$companyId+/_layout_company.tsx index c2173a4..e396093 100644 --- a/app/routes/c.$companyId+/_layout_company.tsx +++ b/app/routes/c.$companyId+/_layout_company.tsx @@ -1,5 +1,10 @@ import { Link, NavLink, Outlet } from '@remix-run/react' +import { UserDropdown } from '#app/components/layout/header' +import { MobileNav } from '#app/components/layout/mobile-nav' +import { SearchBar } from '#app/components/search-bar' import { ThemeSwitch } from '#app/components/theme-switcher' +import { Button } from '#app/components/ui/button' +import { Icon } from '#app/components/ui/icon' const companyRoutes = [ { @@ -20,17 +25,57 @@ const companyRoutes = [ }, ] +const mobileCompanyRoutes = [ + { + title: 'General', + items: [ + { + title: 'Dashboard', + href: '', + }, + { + title: 'Accounts', + href: 'accounts', + }, + { + title: 'Sales', + href: 'sales', + }, + { + title: 'Purchase', + href: 'purchase', + }, + { + title: 'Reports', + href: 'reports', + }, + ], + }, +] + export default function LayoutCompany() { return ( -
-