From fdec8b81bb6d5750fccd52fa8b8a135b3105f8bc Mon Sep 17 00:00:00 2001 From: Corwin Smith Date: Thu, 3 Apr 2025 12:21:56 -0600 Subject: [PATCH] add content in downloads table for mac --- .../UI/downloads/DownloadsTable.tsx | 21 ++++++++++++++----- src/constants.ts | 2 +- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/components/UI/downloads/DownloadsTable.tsx b/src/components/UI/downloads/DownloadsTable.tsx index 43ecd13af9..f25d042e5a 100644 --- a/src/components/UI/downloads/DownloadsTable.tsx +++ b/src/components/UI/downloads/DownloadsTable.tsx @@ -1,4 +1,4 @@ -import { Stack, Tabs, TabList, Tab, Text, TabPanel, TabPanels } from '@chakra-ui/react'; +import { Link, Stack, Tabs, TabList, Tab, Text, TabPanel, TabPanels } from '@chakra-ui/react'; import { FC, useMemo } from 'react'; import { DataTable } from '../../UI'; @@ -38,9 +38,9 @@ export const DownloadsTable: FC = ({ const getDefaultIndex = useMemo(() => { const OS: string = typeof window !== 'undefined' ? window.navigator.platform : ''; const userAgent = typeof window !== 'undefined' ? window.navigator.userAgent : ''; - if (/Win/i.test(OS)) return 1; - if (/iPhone/i.test(OS)) return 2; - if (/Android/i.test(userAgent)) return 3; + if (/Win/i.test(OS)) return 2; + if (/iPhone/i.test(OS)) return 3; + if (/Android/i.test(userAgent)) return 4; return 0; }, []); @@ -63,7 +63,7 @@ export const DownloadsTable: FC = ({ return ( = ({ data={linuxData.slice(0, LAST_2_LINUX_RELEASES)} /> + + + + Mac users should get their builds from{' '} + + Homebrew + {' '} + or compile themselves. + + +