Skip to content

Commit

Permalink
refactor: 폴더 구조 변경, 네이밍 변경 (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
D0Dam committed Jul 25, 2023
1 parent d78db40 commit b9952bd
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 23 deletions.

This file was deleted.

3 changes: 0 additions & 3 deletions frontend/src/components/@common/Loading/index.tsx

This file was deleted.

3 changes: 3 additions & 0 deletions frontend/src/components/@common/LoadingDots/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import LoadingDots from './LoadingDots';

export default LoadingDots;
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { Meta, StoryObj } from '@storybook/react';
import LoadingIndicator from './LoadingIndicator';

const meta: Meta<typeof LoadingIndicator> = {
title: 'Loading/LoadingIndicator',
component: LoadingIndicator,
};

export default meta;

type Story = StoryObj<typeof LoadingIndicator>;

export const Default: Story = {
args: { size: 30 },
};
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import Cel from '~/assets/icons/celuveat_cel.svg';
import Luv from '~/assets/icons/celuveat_luv.svg';
import Eat from '~/assets/icons/celuveat_eat.svg';

interface LoadingAnimationProps {
interface LoadingIndicatorProps {
size: number;
}

function LoadingAnimation({ size }: LoadingAnimationProps) {
function LoadingIndicator({ size }: LoadingIndicatorProps) {
return (
<StyledLoadingAnimation>
<StyledBouncing size={size}>
Expand All @@ -23,6 +23,8 @@ function LoadingAnimation({ size }: LoadingAnimationProps) {
);
}

export default LoadingIndicator;

const StyledLoadingAnimation = styled.div`
display: flex;
gap: 0.6rem;
Expand Down Expand Up @@ -72,5 +74,3 @@ const StyledBouncing = styled.div<{ size: number }>`
background: none;
animation: ${bounceAnimation} 1.6s ease-in-out infinite;
`;

export default LoadingAnimation;
3 changes: 3 additions & 0 deletions frontend/src/components/@common/LoadingIndicator/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import LoadingIndicator from './LoadingIndicator';

export default LoadingIndicator;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from '@storybook/react';
import Skeleton from './Skeleton';

const meta: Meta<typeof Skeleton> = {
title: 'Loading/Skeleton',
title: 'Skeleton',
component: Skeleton,
};

Expand Down
3 changes: 3 additions & 0 deletions frontend/src/components/@common/Skeleton/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Skeleton from './Skeleton';

export default Skeleton;

0 comments on commit b9952bd

Please sign in to comment.