Add interactive frontend roadmap version
This commit is contained in:
@ -20,7 +20,7 @@ export function RoadmapError(props: RoadmapProps) {
|
||||
color='white'
|
||||
>
|
||||
<Heading mb='4px' size='md'>Oops! There's an error</Heading>
|
||||
<Text>Try refreshing or <Link target='_blank' fontWeight={700} textDecoration={'underline'} fontSize='14px' href={siteConfig.url.issue}>report a bug</Link> and use the <Link fontWeight={700} textDecoration={'underline'} href={`/${roadmap.id}`}>non-interactive version</Link></Text>
|
||||
<Text>Try refreshing or <Link target='_blank' fontWeight={700} textDecoration={'underline'} fontSize='14px' href={siteConfig.url.issue}>report a bug</Link> and use the <Link fontWeight={700} textDecoration={'underline'} href={`/roadmaps/${roadmap.id}.png`}>non-interactive version</Link></Text>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
@ -20,9 +20,6 @@ type RoadmapPageHeaderType = {
|
||||
|
||||
export function RoadmapPageHeader(props: RoadmapPageHeaderType) {
|
||||
const { roadmap } = props;
|
||||
const router = useRouter()
|
||||
|
||||
const isInteractive = router.pathname.includes('/interactive');
|
||||
|
||||
return (
|
||||
<Box
|
||||
@ -92,22 +89,6 @@ export function RoadmapPageHeader(props: RoadmapPageHeaderType) {
|
||||
Subscribe
|
||||
</Button>
|
||||
</Stack>
|
||||
{roadmap.id === 'frontend' && !isInteractive && (
|
||||
<Button
|
||||
d={['none', 'flex', 'flex']}
|
||||
as={Link}
|
||||
href={'/frontend/interactive'}
|
||||
size="xs"
|
||||
py="14px"
|
||||
px="10px"
|
||||
variant="solid"
|
||||
_hover={{ textDecoration: 'none' }}
|
||||
colorScheme="purple"
|
||||
>
|
||||
<Text as='span' d={['none', 'none', 'inline']}>✨ Interactive Version (Beta)</Text>
|
||||
<Text as='span' d={['inline', 'inline', 'none']}>✨ Try Beta</Text>
|
||||
</Button>
|
||||
)}
|
||||
</Flex>
|
||||
</Container>
|
||||
</Box>
|
||||
|
Reference in New Issue
Block a user