feat: add phone view link to dashboard
Introduced a new link in the dashboard that allows users to access the mobile view of the application. The link features a smartphone icon and is styled for better visibility, enhancing user navigation options.
This commit is contained in:
parent
bdd0ac46e3
commit
ccb27db82f
1 changed files with 13 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ import {
|
|||
BarChart3,
|
||||
Boxes,
|
||||
RefreshCw,
|
||||
Smartphone,
|
||||
} from "lucide-react";
|
||||
import { toast } from "sonner";
|
||||
import getPocketBase from "@/lib/pocketbase";
|
||||
|
|
@ -290,6 +291,18 @@ function DashboardView({
|
|||
</p>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
<Link
|
||||
href="/m"
|
||||
className="inline-flex items-center gap-1.5 rounded-md border px-2.5 py-1 text-xs font-medium transition-colors hover:bg-muted/40"
|
||||
style={{
|
||||
borderColor: withAlpha(CHART.cyan, 25),
|
||||
color: CHART.cyan,
|
||||
}}
|
||||
aria-label="Open boss phone view"
|
||||
>
|
||||
<Smartphone className="h-3 w-3" />
|
||||
Phone view
|
||||
</Link>
|
||||
<button
|
||||
type="button"
|
||||
onClick={onRefresh}
|
||||
|
|
|
|||
Loading…
Reference in a new issue