Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit dd9c602

Browse files
committed
style: hide callout icon on sm screens
1 parent 4b36d97 commit dd9c602

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

frontend/src/pages/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ export const getStaticProps = async ({ locale }: { locale: string }) => ({
164164
});
165165

166166
const CurrentStatus = () => {
167+
const shouldShowIcon = useBreakpointValue({ base: false, md: true });
167168
const buttonSize = useBreakpointValue({ base: 'md', md: 'lg' });
168-
const iconSize = useBreakpointValue({ base: 20, md: 24 });
169169

170170
return (
171171
<Stack
@@ -179,8 +179,7 @@ const CurrentStatus = () => {
179179
rounded="lg"
180180
color="black"
181181
>
182-
<Icon as={GiCrownedHeart} boxSize={iconSize} />
183-
182+
{shouldShowIcon && <Icon as={GiCrownedHeart} boxSize={20} />}
184183
<Stack spacing={4}>
185184
<Stack fontSize="xs">
186185
<Text fontSize="sm" fontWeight="bold">

0 commit comments

Comments
 (0)