Skip to content

Commit

Permalink
feat: Storybook에서 오류 수정을 위한 fragment로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeml06 committed Nov 22, 2024
1 parent 6f8fcc0 commit 87b4529
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions frontend/src/components/OptionsPanel/OptionsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ interface OptionsPanelProps {
maxHeight?: string;
}

import { Fragment } from 'react';
import * as S from './OptionsPanel.style';

import { useTheme } from '@emotion/react';
Expand All @@ -31,7 +32,7 @@ export default function OptionsPanel(props: OptionsPanelProps) {
const theme = useTheme();

return (
<>
<Fragment>
<div onClick={onClose} css={S.dimmer} />
<div
css={S.panel({
Expand All @@ -57,6 +58,6 @@ export default function OptionsPanel(props: OptionsPanelProps) {
);
})}
</div>
</>
</Fragment>
);
}
8 changes: 4 additions & 4 deletions frontend/src/pages/Mypage/MyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function MyPage() {
</InformationLayout.Header.Left>
<InformationLayout.Header.Right>
{!isEditing ? (
<>
<Fragment>
<button
css={S.AccountButton({ theme })}
onClick={handleEditClick}
Expand All @@ -66,9 +66,9 @@ export default function MyPage() {
>
<Setting />
</button>
</>
</Fragment>
) : (
<>
<Fragment>
{isShownRest && (
<button
css={S.AccountButton({ theme })}
Expand All @@ -93,7 +93,7 @@ export default function MyPage() {
<button css={S.AccountButton({ theme })} onClick={handleCancel}>
취소
</button>
</>
</Fragment>
)}
</InformationLayout.Header.Right>
</InformationLayout.Header>
Expand Down

0 comments on commit 87b4529

Please sign in to comment.