Skip to content

Commit

Permalink
fix: [1주차 리뷰] maxWidth의 타입을 구체적으로 지정
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyoeunkh committed Jun 30, 2024
1 parent a3d5b2e commit 7f91189
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Layout/Container.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/stories/Container.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Template: StoryFn<IContainer> = (args) => <Container {...args} />;

export const Default = Template.bind({});
Default.args = {
maxWidth: '100',
maxWidth: '100px',
children: 'Hello, world!',
flexDirection: 'row',
justifyContent: 'center',
Expand Down

0 comments on commit 7f91189

Please sign in to comment.