Skip to content

Commit 7b1a826

Browse files
committed
chore: add missing tile/pipe title
1 parent ac431ad commit 7b1a826

File tree

2 files changed

+81
-69
lines changed

2 files changed

+81
-69
lines changed
Lines changed: 41 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Helmet } from 'react-helmet'
12
import { Box, Stack, Text, VStack } from '@chakra-ui/react'
23
import { Link } from '@opengovsg/design-system-react'
34

@@ -7,40 +8,45 @@ import styles from '@/pages/UnauthorizedTile/UnauthorizedTile.module.css'
78

89
export default function InvalidEditorPage() {
910
return (
10-
<Stack
11-
direction={{ base: 'column', md: 'row' }}
12-
maxW="1000px"
13-
margin="auto"
14-
gap={8}
15-
px={8}
16-
alignItems="center"
17-
justifyContent="center"
18-
>
19-
<Box
20-
className={styles.flicker}
21-
as={PipeIcon}
22-
color="primary.300"
23-
w="400px"
24-
h="200px"
25-
maxW="50vw"
26-
/>
27-
<VStack alignItems={{ base: 'center', md: 'start' }} gap={2}>
28-
<Text
29-
textStyle="h4"
30-
textAlign={{ base: 'center', md: 'left' }}
31-
fontWeight="normal"
32-
>
33-
Pipe not found, you may have transferred it to someone else 🤔
34-
</Text>
35-
<Link
36-
textStyle="h6"
37-
textAlign={{ base: 'center', md: 'left' }}
38-
fontWeight="normal"
39-
href={URLS.FLOWS}
40-
>
41-
Back to your Pipes
42-
</Link>
43-
</VStack>
44-
</Stack>
11+
<>
12+
<Helmet>
13+
<title>you seem lost...</title>
14+
</Helmet>
15+
<Stack
16+
direction={{ base: 'column', md: 'row' }}
17+
maxW="1000px"
18+
margin="auto"
19+
gap={8}
20+
px={8}
21+
alignItems="center"
22+
justifyContent="center"
23+
>
24+
<Box
25+
className={styles.flicker}
26+
as={PipeIcon}
27+
color="primary.300"
28+
w="400px"
29+
h="200px"
30+
maxW="50vw"
31+
/>
32+
<VStack alignItems={{ base: 'center', md: 'start' }} gap={2}>
33+
<Text
34+
textStyle="h4"
35+
textAlign={{ base: 'center', md: 'left' }}
36+
fontWeight="normal"
37+
>
38+
Pipe not found, you may have transferred it to someone else 🤔
39+
</Text>
40+
<Link
41+
textStyle="h6"
42+
textAlign={{ base: 'center', md: 'left' }}
43+
fontWeight="normal"
44+
href={URLS.FLOWS}
45+
>
46+
Back to your Pipes
47+
</Link>
48+
</VStack>
49+
</Stack>
50+
</>
4551
)
4652
}
Lines changed: 40 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Helmet } from 'react-helmet'
12
import { Image, Stack, Text, VStack } from '@chakra-ui/react'
23
import { Link } from '@opengovsg/design-system-react'
34

@@ -12,39 +13,44 @@ interface MissingTileProps {
1213

1314
export function MissingTile({ title }: MissingTileProps): JSX.Element {
1415
return (
15-
<Stack
16-
direction={{ base: 'column', md: 'row' }}
17-
maxW="1000px"
18-
margin="auto"
19-
gap={8}
20-
px={8}
21-
alignItems="center"
22-
justifyContent="center"
23-
>
24-
<Image
25-
className={styles.flicker}
26-
src={spreadsheetImg}
27-
alt="Spreadsheet"
28-
w="400px"
29-
maxW="50%"
30-
/>
31-
<VStack alignItems={{ base: 'center', md: 'start' }} gap={2}>
32-
<Text
33-
textStyle="h4"
34-
textAlign={{ base: 'center', md: 'left' }}
35-
fontWeight="normal"
36-
>
37-
{title}
38-
</Text>
39-
<Link
40-
textStyle="h6"
41-
textAlign={{ base: 'center', md: 'left' }}
42-
fontWeight="normal"
43-
href={URLS.TILES}
44-
>
45-
Back to your Tiles
46-
</Link>
47-
</VStack>
48-
</Stack>
16+
<>
17+
<Helmet>
18+
<title>you seem lost...</title>
19+
</Helmet>
20+
<Stack
21+
direction={{ base: 'column', md: 'row' }}
22+
maxW="1000px"
23+
margin="auto"
24+
gap={8}
25+
px={8}
26+
alignItems="center"
27+
justifyContent="center"
28+
>
29+
<Image
30+
className={styles.flicker}
31+
src={spreadsheetImg}
32+
alt="Spreadsheet"
33+
w="400px"
34+
maxW="50%"
35+
/>
36+
<VStack alignItems={{ base: 'center', md: 'start' }} gap={2}>
37+
<Text
38+
textStyle="h4"
39+
textAlign={{ base: 'center', md: 'left' }}
40+
fontWeight="normal"
41+
>
42+
{title}
43+
</Text>
44+
<Link
45+
textStyle="h6"
46+
textAlign={{ base: 'center', md: 'left' }}
47+
fontWeight="normal"
48+
href={URLS.TILES}
49+
>
50+
Back to your Tiles
51+
</Link>
52+
</VStack>
53+
</Stack>
54+
</>
4955
)
5056
}

0 commit comments

Comments
 (0)