Skip to content

Commit

Permalink
chore: named export -> default export
Browse files Browse the repository at this point in the history
  • Loading branch information
gahyuun committed Feb 18, 2024
1 parent 91f3565 commit 60b333c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/ui/view/atom/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const ButtonVariants = cva(`flex justify-center items-center`, {
},
});

export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(function Button(
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(function Button(
{ label, variant = 'primary', size = 'default', ...props },
ref,
) {
Expand All @@ -35,3 +35,5 @@ export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(function
</button>
);
});

export default Button;
2 changes: 1 addition & 1 deletion app/ui/view/molecule/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className="flex flex-col gap-2.5 w-[900px]">
{getChildren(children, ListHeader)}
Expand Down
2 changes: 1 addition & 1 deletion app/ui/view/molecule/list/list.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StoryObj } from '@storybook/react';
import { List } from '.';
import List from '.';

const meta = {
title: 'ui/view/molecule/list',
Expand Down

0 comments on commit 60b333c

Please sign in to comment.