From 7158d68ce6312d1944c5bab3905056f2b99196ef Mon Sep 17 00:00:00 2001 From: Pete Watters <2938440+pete-watters@users.noreply.github.com> Date: Fri, 2 Feb 2024 05:45:49 +0000 Subject: [PATCH] chore: make naming of popup consistent --- .storybook/viewports.ts | 4 ++-- src/app/ui/components/containers/home.layout.tsx | 7 +++---- .../{popout/popout.card.tsx => popup/popup-card.tsx} | 3 +-- src/app/ui/components/containers/two-column.layout.tsx | 4 ++-- src/shared/constants.ts | 1 + 5 files changed, 9 insertions(+), 10 deletions(-) rename src/app/ui/components/containers/{popout/popout.card.tsx => popup/popup-card.tsx} (76%) 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) {