Skip to content

Commit efe7e66

Browse files
committed
Refactor: OODDFrame Loading Modal 컴포넌트 리팩토링
1 parent 819435b commit efe7e66

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/components/Frame/Frame.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import styled from 'styled-components';
2-
import theme from '../../styles/theme';
2+
import theme from '@styles/theme';
33

4-
// 공통 레이아웃 -> 모두 적용해주세요
54
export const OODDFrame = styled.div`
65
${theme.breakPoints};
76
background-color: ${({ theme }) => theme.colors.white};

src/components/Loading/styles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ export const Dot = styled.hr<{ $index: number }>`
3939
4040
// 각 점에 대해 딜레이를 적용하여 순차적으로 애니메이션을 시작
4141
animation: ${bounceGroup} 2s ease-in-out infinite;
42-
animation-delay: ${({ $index }) => `${($index % 3) * 0.2}s`}};
42+
animation-delay: ${({ $index }) => `${($index % 3) * 0.2}s`};
4343
`;

src/components/Modal/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
33
import { ModalWrapper, ModalContainer, CloseButton, ConfirmButton } from './styles';
4-
import { StyledText } from '../Text/StyledText';
5-
import { ModalProps } from './dto';
6-
import XIcon from '../../assets/default/x.svg';
4+
import { StyledText } from '@components/Text/StyledText';
5+
import type { ModalProps } from './dto';
6+
import closeIcon from '@assets/default/x.svg';
77

88
const Modal: React.FC<ModalProps> = ({ isCloseButtonVisible, onClose, content, button }) => {
99
const handleBackgroundClick = (e: React.MouseEvent) => {
@@ -26,7 +26,7 @@ const Modal: React.FC<ModalProps> = ({ isCloseButtonVisible, onClose, content, b
2626
<ModalContainer $isCloseButtonVisible={isCloseButtonVisible || false}>
2727
{isCloseButtonVisible && (
2828
<CloseButton onClick={onClose}>
29-
<img src={XIcon} alt="" />
29+
<img src={closeIcon} alt="" />
3030
</CloseButton>
3131
)}
3232
<StyledText $textTheme={{ style: 'body2-regular' }}>{content}</StyledText>

0 commit comments

Comments
 (0)