From 60b333c917dcc96f7d56cdc89bdcf221d00c2dcb Mon Sep 17 00:00:00 2001 From: 89882 Date: Sun, 18 Feb 2024 17:34:38 +0900 Subject: [PATCH] chore: named export -> default export --- app/ui/view/atom/button/button.tsx | 4 +++- app/ui/view/molecule/list/index.tsx | 2 +- app/ui/view/molecule/list/list.stories.tsx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/ui/view/atom/button/button.tsx b/app/ui/view/atom/button/button.tsx index 9098eefd..32a6adce 100644 --- a/app/ui/view/atom/button/button.tsx +++ b/app/ui/view/atom/button/button.tsx @@ -25,7 +25,7 @@ export const ButtonVariants = cva(`flex justify-center items-center`, { }, }); -export const Button = React.forwardRef(function Button( +const Button = React.forwardRef(function Button( { label, variant = 'primary', size = 'default', ...props }, ref, ) { @@ -35,3 +35,5 @@ export const Button = React.forwardRef(function ); }); + +export default Button; diff --git a/app/ui/view/molecule/list/index.tsx b/app/ui/view/molecule/list/index.tsx index 0615a869..40e05932 100644 --- a/app/ui/view/molecule/list/index.tsx +++ b/app/ui/view/molecule/list/index.tsx @@ -11,7 +11,7 @@ const getChildren = (children: ReactNode, type: typeof ListHeader | typeof ListR return childrenArray.filter((child) => isValidElement(child) && child.type === type); }; -export function List({ children }: ListProps) { +export default function List({ children }: ListProps) { return (
{getChildren(children, ListHeader)} diff --git a/app/ui/view/molecule/list/list.stories.tsx b/app/ui/view/molecule/list/list.stories.tsx index d3aa7f78..7a970b00 100644 --- a/app/ui/view/molecule/list/list.stories.tsx +++ b/app/ui/view/molecule/list/list.stories.tsx @@ -1,5 +1,5 @@ import type { StoryObj } from '@storybook/react'; -import { List } from '.'; +import List from '.'; const meta = { title: 'ui/view/molecule/list',