Skip to content

Commit a313874

Browse files
committed
REFACTOR: imagePath에 추가
1 parent bb49684 commit a313874

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

react-app/src/components/Character/Character.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1+
import { IMAGES } from '@/constants/imagePath';
12
const CharacterCard = () => {
23
return (
34
<div className="relative flex flex-col items-center">
45
{/* seal 이미지 */}
5-
<img
6-
src="\assets\images\seal-chat-big.svg"
7-
alt="Character Seal"
8-
className="relative z-10 sm:w-[300px]"
9-
/>
6+
<img src={IMAGES.SEAL_CHAT_BIG} alt="Character Seal" className="relative z-10 sm:w-[300px]" />
107
</div>
118
);
129
};

react-app/src/constants/imagePath.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const IMAGES = {
88
DEFAULT_PROFILE: '/assets/images/default-profile.png',
99
MEDAL: '/assets/images/medal.png',
1010
SEAL_CHANGE_PASSWORD: '/assets/images/seal-change-password.svg',
11+
SEAL_CHAT_BIG: '/assets/images/seal-chat-big.svg',
1112
ARROW_LEFT: '/assets/images/vector.png',
1213
MOCKUP: '/assets/images/mockup.png',
1314
MAIN: [

0 commit comments

Comments
 (0)