Skip to content

Commit 2b938cb

Browse files
authored
fix(announcement): hide on mobile (#1765)
1 parent fc045df commit 2b938cb

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
import { Box, Badge, Link } from 'components/elements'
1+
import { Hide, Box, Badge, Link } from 'components/elements'
22
import { theme } from 'theme'
33
import React from 'react'
44

55
const Announcement = ({ href, children, ...props }) => (
6-
<Box {...props}>
7-
<Link css={theme({ whiteSpace: 'pre-wrap', color: 'black' })} href={href}>
8-
<>
6+
<Hide breakpoints={[0]}>
7+
<Box {...props}>
8+
<Link css={theme({ whiteSpace: 'pre-wrap', color: 'black' })} href={href}>
99
<Badge css={theme({ mr: 2 })}>new</Badge>
1010
{children}
1111
{/* {' →'} */}
12-
</>
13-
</Link>
14-
15-
</Box>
16-
12+
</Link>
13+
</Box>
14+
</Hide>
1715
)
1816

1917
export default Announcement

0 commit comments

Comments
 (0)