|
|
|
@ -12,6 +12,7 @@ interface Props { |
|
|
|
|
windowsData: ReleaseData[]; |
|
|
|
|
iOSData: ReleaseData[]; |
|
|
|
|
androidData: ReleaseData[]; |
|
|
|
|
totalReleasesNumber: number; |
|
|
|
|
amountOfReleasesToShow: number; |
|
|
|
|
setTotalReleases: (idx: number) => void; |
|
|
|
|
} |
|
|
|
@ -22,6 +23,7 @@ export const DownloadsTable: FC<Props> = ({ |
|
|
|
|
windowsData, |
|
|
|
|
iOSData, |
|
|
|
|
androidData, |
|
|
|
|
totalReleasesNumber, |
|
|
|
|
amountOfReleasesToShow, |
|
|
|
|
setTotalReleases |
|
|
|
|
}) => { |
|
|
|
@ -36,7 +38,14 @@ export const DownloadsTable: FC<Props> = ({ |
|
|
|
|
const LAST_2_LINUX_RELEASES = amountOfReleasesToShow + 12; |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<Stack sx={{ mt: '0 !important' }}> |
|
|
|
|
<Stack |
|
|
|
|
sx={{ mt: '0 !important' }} |
|
|
|
|
borderBottom={ |
|
|
|
|
amountOfReleasesToShow < totalReleasesNumber |
|
|
|
|
? '2px solid var(--chakra-colors-primary)' |
|
|
|
|
: 'none' |
|
|
|
|
} |
|
|
|
|
> |
|
|
|
|
<Tabs variant='unstyled' onChange={idx => setTotalReleases(totalReleases[idx])}> |
|
|
|
|
<TabList color='primary' bg='button-bg'> |
|
|
|
|
{DOWNLOADS_TABLE_TABS.map((tab, idx) => { |
|
|
|
|