diff --git a/ui/pages/BlockCountdown.pw.tsx b/ui/pages/BlockCountdown.pw.tsx index a5bb86af3a..d242979f78 100644 --- a/ui/pages/BlockCountdown.pw.tsx +++ b/ui/pages/BlockCountdown.pw.tsx @@ -26,7 +26,7 @@ test('short period until the block +@mobile', async({ render, mockApiResponse }) blockno: height, }, }); - const component = await render(, { hooksConfig }); + const component = await render(, { hooksConfig }); await expect(component).toHaveScreenshot(); }); @@ -52,6 +52,6 @@ test('long period until the block +@mobile', async({ render, mockApiResponse }) blockno: height, }, }); - const component = await render(, { hooksConfig }); + const component = await render(, { hooksConfig }); await expect(component).toHaveScreenshot(); }); diff --git a/ui/pages/BlockCountdown.tsx b/ui/pages/BlockCountdown.tsx index ad2f699083..cf16980b9a 100644 --- a/ui/pages/BlockCountdown.tsx +++ b/ui/pages/BlockCountdown.tsx @@ -20,7 +20,11 @@ import TruncatedValue from 'ui/shared/TruncatedValue'; import CapybaraRunner from '../games/CapybaraRunner'; -const BlockCountdown = () => { +type Props = { + hideCapybaraRunner?: boolean; +}; + +const BlockCountdown = ({ hideCapybaraRunner }: Props) => { const router = useRouter(); const height = getQueryParamString(router.query.height); const iconColor = useColorModeValue('gray.300', 'gray.600'); @@ -114,7 +118,7 @@ const BlockCountdown = () => { - + { !hideCapybaraRunner && } ); diff --git a/ui/pages/__screenshots__/BlockCountdown.pw.tsx_default_long-period-until-the-block-mobile-1.png b/ui/pages/__screenshots__/BlockCountdown.pw.tsx_default_long-period-until-the-block-mobile-1.png index da48882ab1..a51c5c3a19 100644 Binary files a/ui/pages/__screenshots__/BlockCountdown.pw.tsx_default_long-period-until-the-block-mobile-1.png and b/ui/pages/__screenshots__/BlockCountdown.pw.tsx_default_long-period-until-the-block-mobile-1.png differ diff --git a/ui/pages/__screenshots__/BlockCountdown.pw.tsx_default_short-period-until-the-block-mobile-1.png b/ui/pages/__screenshots__/BlockCountdown.pw.tsx_default_short-period-until-the-block-mobile-1.png index 6f94871e3a..820a2f622a 100644 Binary files a/ui/pages/__screenshots__/BlockCountdown.pw.tsx_default_short-period-until-the-block-mobile-1.png and b/ui/pages/__screenshots__/BlockCountdown.pw.tsx_default_short-period-until-the-block-mobile-1.png differ