File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed
apps/web/src/routes/_view/download Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change 11import { Icon } from "@iconify-icon/react" ;
22import { createFileRoute , Link } from "@tanstack/react-router" ;
33import { Check , Copy } from "lucide-react" ;
4- import { useState } from "react" ;
4+ import { useEffect , useState } from "react" ;
55
66import { cn } from "@hypr/utils" ;
77
@@ -13,6 +13,12 @@ export const Route = createFileRoute("/_view/download/")({
1313} ) ;
1414
1515function Component ( ) {
16+ const [ isMac , setIsMac ] = useState ( false ) ;
17+
18+ useEffect ( ( ) => {
19+ setIsMac ( navigator . userAgent . toLowerCase ( ) . includes ( "mac" ) ) ;
20+ } , [ ] ) ;
21+
1622 return (
1723 < div
1824 className = "bg-linear-to-b from-white via-blue-50/20 to-white min-h-screen"
@@ -78,14 +84,16 @@ function Component() {
7884 </ div >
7985 </ div >
8086
81- < div className = "mb-16" >
82- < h2 className = "text-2xl font-serif tracking-tight mb-6 text-center" >
83- Homebrew
84- </ h2 >
85- < div className = "max-w-2xl mx-auto" >
86- < HomebrewCard />
87+ { isMac && (
88+ < div className = "mb-16" >
89+ < h2 className = "text-2xl font-serif tracking-tight mb-6 text-center" >
90+ Homebrew
91+ </ h2 >
92+ < div className = "max-w-2xl mx-auto" >
93+ < HomebrewCard />
94+ </ div >
8795 </ div >
88- </ div >
96+ ) }
8997
9098 < div >
9199 < h2 className = "text-2xl font-serif tracking-tight mb-6 text-center" >
You can’t perform that action at this time.
0 commit comments