diff --git a/README.md b/README.md index bcf23463b1..38125544b4 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ After adding a page, you will also need to list it in `/src/data/documentation-l Notes in documentation pages are highlighted boxes (color depend on the current set dark/light theme). To add a note, wrap the note text in `` tage as follows: ```markdown - text to include in note +text to include in note ``` Screen Shot 2023-01-04 at 18 22 06 diff --git a/src/components/UI/docs/Note.tsx b/src/components/UI/docs/Note.tsx index 5278fc12ba..5445fecc79 100644 --- a/src/components/UI/docs/Note.tsx +++ b/src/components/UI/docs/Note.tsx @@ -2,15 +2,16 @@ import { FC } from 'react'; import { Stack, Text } from '@chakra-ui/react'; interface Props { - children: string[]; + children: string; } export const Note: FC = ({ children }) => { return ( - + Note + {children} ); diff --git a/src/components/UI/downloads/BuildsDeprecationNote.tsx b/src/components/UI/downloads/BuildsDeprecationNote.tsx new file mode 100644 index 0000000000..02de6355ec --- /dev/null +++ b/src/components/UI/downloads/BuildsDeprecationNote.tsx @@ -0,0 +1,17 @@ +import { Stack, Text } from '@chakra-ui/react'; +import { FC } from 'react'; + +interface Props { + os: string; +} + +export const BuildsDeprecationNote: FC = ({ os }) => { + return ( + + + Geth no longer releases builds for {os}. {os} builds on this page are + archival and are not consistent with current Geth. + + + ); +}; diff --git a/src/components/UI/downloads/DownloadsTable.tsx b/src/components/UI/downloads/DownloadsTable.tsx index c21e4865a4..1924d32d19 100644 --- a/src/components/UI/downloads/DownloadsTable.tsx +++ b/src/components/UI/downloads/DownloadsTable.tsx @@ -2,6 +2,7 @@ import { Stack, Tabs, TabList, Tab, Text, TabPanel, TabPanels } from '@chakra-ui import { FC, useMemo } from 'react'; import { DataTable } from '../../UI'; +import { BuildsDeprecationNote } from './BuildsDeprecationNote'; import { DOWNLOADS_TABLE_TABS, DOWNLOADS_TABLE_TAB_COLUMN_HEADERS } from '../../../constants'; import { ReleaseData } from '../../../types'; @@ -102,12 +103,16 @@ export const DownloadsTable: FC = ({ /> + + + +