diff --git a/.storybook/viewports.ts b/.storybook/viewports.ts index 6fde3c7c3a9..65e8ef8075f 100644 --- a/.storybook/viewports.ts +++ b/.storybook/viewports.ts @@ -3,8 +3,8 @@ import { breakpoints } from '@leather-wallet/tokens'; import { POPUP_HEIGHT, POPUP_WIDTH } from '../src/shared/constants'; export const customViewports = { - extension: { - name: 'Extension Popout', + popup: { + name: 'Popup', styles: { width: `${POPUP_WIDTH}px`, height: `${POPUP_HEIGHT}px`, diff --git a/src/app/ui/components/containers/home.layout.tsx b/src/app/ui/components/containers/home.layout.tsx index a05d2add556..724ef2fb1b0 100644 --- a/src/app/ui/components/containers/home.layout.tsx +++ b/src/app/ui/components/containers/home.layout.tsx @@ -3,10 +3,9 @@ import React from 'react'; import { HomePageSelectors } from '@tests/selectors/home.selectors'; import { Stack } from 'leather-styles/jsx'; -import { AccountInfoCard } from '../../../pages/home/components/account-info-card'; +import { HOMEPAGE_MAX_WIDTH } from '@shared/constants'; -// FIXME 4370 - move this const somewhere else, maybe with POPOUT size in src/shared/constants? with the other viewports? Use a breakpoint token? -export const HOME_MAX_WIDTH = '882px'; +import { AccountInfoCard } from '../../../pages/home/components/account-info-card'; type HomeLayoutProps = Record<'currentAccount' | 'children', React.ReactNode>; export function HomeLayout({ children }: HomeLayoutProps) { @@ -14,7 +13,7 @@ export function HomeLayout({ children }: HomeLayoutProps) {