1+ import Switch from '@node-core/ui-components/Common/Switch' ;
12import { getTranslations } from 'next-intl/server' ;
23import type { FC } from 'react' ;
34
45import provideReleaseData from '#site/next-data/providers/releaseData' ;
56import provideVulnerabilities from '#site/next-data/providers/vulnerabilities' ;
67import { EOL_VERSION_IDENTIFIER } from '#site/next.constants.mjs' ;
78
9+ import styles from './index.module.css' ;
810import EOLReleaseTableBody from './TableBody' ;
911
1012const EOLReleaseTable : FC = async ( ) => {
@@ -18,24 +20,27 @@ const EOLReleaseTable: FC = async () => {
1820 const t = await getTranslations ( ) ;
1921
2022 return (
21- < table id = "tbVulnerabilities" >
22- < thead >
23- < tr >
24- < th >
25- { t ( 'components.eolTable.version' ) } (
26- { t ( 'components.eolTable.codename' ) } )
27- </ th >
28- < th > { t ( 'components.eolTable.lastUpdated' ) } </ th >
29- < th > { t ( 'components.eolTable.vulnerabilities' ) } </ th >
30- < th > { t ( 'components.eolTable.details' ) } </ th >
31- </ tr >
32- </ thead >
33-
34- < EOLReleaseTableBody
35- eolReleases = { eolReleases }
36- vulnerabilities = { vulnerabilities }
37- />
38- </ table >
23+ < div className = { styles . eolTableWrapper } >
24+ < Switch id = "hide-non-lts" label = { t ( 'components.eolTable.hideNonLts' ) } />
25+ < table id = "tbVulnerabilities" >
26+ < thead >
27+ < tr >
28+ < th >
29+ { t ( 'components.eolTable.version' ) } (
30+ { t ( 'components.eolTable.codename' ) } )
31+ </ th >
32+ < th > { t ( 'components.eolTable.lastUpdated' ) } </ th >
33+ < th > { t ( 'components.eolTable.vulnerabilities' ) } </ th >
34+ < th > { t ( 'components.eolTable.details' ) } </ th >
35+ </ tr >
36+ </ thead >
37+
38+ < EOLReleaseTableBody
39+ eolReleases = { eolReleases }
40+ vulnerabilities = { vulnerabilities }
41+ />
42+ </ table >
43+ </ div >
3944 ) ;
4045} ;
4146
0 commit comments