Skip to content

Commit

Permalink
chore: enable dashboard on mobile (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
tadejpodrekar authored Dec 9, 2024
1 parent 9425503 commit 4b7609a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 872 deletions.
8 changes: 1 addition & 7 deletions apps/frontend/src/app/(core)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@ export default function Home() {
const mobile = isMobile(userAgent);
return (
<div className="max-h-full">
{mobile ? (
<div className="w-full h-[60dvh] flex items-center justify-center">
This page is not available on mobile devices.
</div>
) : (
<DashboardView />
)}
<DashboardView />
</div>
);
}
2 changes: 1 addition & 1 deletion apps/frontend/src/components/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export const Navbar = ({ mobile = false }: { mobile?: boolean }) => {
</Link>
<div className="flex items-center gap-x-2">
<Points />
{!mobile && <ConnectButton />}
<ConnectButton />
<Button
onMouseDown={() => setOpen(true)}
className="rounded-full w-[40px] h-[40px] p-0"
Expand Down
Loading

0 comments on commit 4b7609a

Please sign in to comment.