From 7f91189b71b2b7cc50a235df18d7a98572efd1c8 Mon Sep 17 00:00:00 2001 From: Hyoeunkh Date: Sun, 30 Jun 2024 15:49:01 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[1=EC=A3=BC=EC=B0=A8=20=EB=A6=AC?= =?UTF-8?q?=EB=B7=B0]=20maxWidth=EC=9D=98=20=ED=83=80=EC=9E=85=EC=9D=84=20?= =?UTF-8?q?=EA=B5=AC=EC=B2=B4=EC=A0=81=EC=9C=BC=EB=A1=9C=20=EC=A7=80?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Layout/Container.tsx | 2 +- src/stories/Container.stories.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Layout/Container.tsx b/src/components/Layout/Container.tsx index 8f5a4c998..bc9bad296 100644 --- a/src/components/Layout/Container.tsx +++ b/src/components/Layout/Container.tsx @@ -1,7 +1,7 @@ import styled from '@emotion/styled'; export interface IContainer { - maxWidth?: string; + maxWidth?: `${string}px`; children: React.ReactNode; flexDirection?: 'row' | 'column'; justifyContent?: 'center' | 'flex-start' | 'flex-end' | 'space-between' | 'space-around'; diff --git a/src/stories/Container.stories.tsx b/src/stories/Container.stories.tsx index ab5457014..558f8dea9 100644 --- a/src/stories/Container.stories.tsx +++ b/src/stories/Container.stories.tsx @@ -10,7 +10,7 @@ const Template: StoryFn = (args) => ; export const Default = Template.bind({}); Default.args = { - maxWidth: '100', + maxWidth: '100px', children: 'Hello, world!', flexDirection: 'row', justifyContent: 'center',