Skip to content

Commit

Permalink
refactor: 컴포넌트들 위치 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ccwnc committed Apr 17, 2024
1 parent e11d830 commit e974629
Show file tree
Hide file tree
Showing 24 changed files with 9 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { RefObject } from 'react';

import classNames from 'classnames/bind';

import AlarmCard from '@/components/header/AlarmCard';
import EmptyAlarm from '@/components/header/EmptyAlarmCard';
import AlarmCard from '@/components/cards/AlarmCard';
import EmptyAlarm from '@/components/cards/EmptyAlarmCard';

import styles from './AlarmList.module.scss';

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import classNames from 'classnames/bind';

import { SVGS } from '@/constants';

import Menu from '@/components/header/Menu';
import Menu from '@/components/Menu';

import styles from './Header.module.scss';

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions src/components/buttons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ export * from './CountButton';
export * from './MoreButton';
export * from './OperationButton';
export * from './CardButton';
export * from './HeaderSigninButton';
export * from './HeaderSignupButton';
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type AlarmCardProps = {
onClick: (id: number) => void;
};

const AlarmCard = ({ id, content, createdAt, onClick }: AlarmCardProps) => {
export const AlarmCard = ({ id, content, createdAt, onClick }: AlarmCardProps) => {
const { isVisible: hoverState, handleToggleClick: handleToggleState } = useToggleButton();

return (
Expand All @@ -41,5 +41,3 @@ const AlarmCard = ({ id, content, createdAt, onClick }: AlarmCardProps) => {
</div>
);
};

export default AlarmCard;
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ type EmptyAlarmCardProps = {
emptyAlarmText: string;
};

const EmptyAlarmCard = ({ emptyAlarmText }: EmptyAlarmCardProps) => {
export const EmptyAlarmCard = ({ emptyAlarmText }: EmptyAlarmCardProps) => {
return (
<div className={cx('empty-alarm')}>
<img src={url} alt={alt} width={24} height={24} />
<span className={cx('text')}>{emptyAlarmText}</span>
</div>
);
};

export default EmptyAlarmCard;
2 changes: 2 additions & 0 deletions src/components/cards/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export * from './AlarmCard';
export * from './Card';
export * from './CardSkeleton';
export * from './EmptyAlarmCard';
2 changes: 0 additions & 2 deletions src/components/header/buttons/index.ts

This file was deleted.

0 comments on commit e974629

Please sign in to comment.