Skip to content

Commit 052c22a

Browse files
authored
[EC-102] style: 이미지 절대경로로 수정 (#83)
1 parent 3109a56 commit 052c22a

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

client/src/components/buttons/closeButton/CloseButton.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import styles from './CloseButton.module.css';
44
export default function CloseButton({ handleClick }) {
55
return (
66
<button onClick={handleClick} className={styles.closeButton}>
7-
<img src="../../assets/close-icon.png" alt="닫기 아이콘" />
7+
<img src="/assets/close-icon.png" alt="닫기 아이콘" />
88
</button>
99
);
1010
}

client/src/components/buttons/moreButton/MoreButton.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function MoreButton() {
2525
return (
2626
<div className={styles.moreButtonbox} ref={dropdownRef}>
2727
<button onClick={() => setIsOpen((prev) => !prev)} className={styles.moreButton}>
28-
<img src="../../assets/more-icon.png" alt="더보기 아이콘" />
28+
<img src="/assets/more-icon.png" alt="더보기 아이콘" />
2929
</button>
3030

3131
{isOpen && (

client/src/components/calendar/Calendar.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ export default function Calendar({ attendanceData }) {
3333
onNavigate('PREV');
3434
}}
3535
>
36-
<img src="../../assets/arrowBackIcon.svg" alt="arrowPrev" />
36+
<img src="/assets/arrowBackIcon.svg" alt="arrowPrev" />
3737
</button>
3838
<span>{moment(date).format('YYYY.MM')}</span>
3939
<button
4040
onClick={() => {
4141
onNavigate('NEXT');
4242
}}
4343
>
44-
<img src="../../assets/arrowBackIcon.svg" alt="arrowNext" className={styles.arrowNext} />
44+
<img src="/assets/arrowBackIcon.svg" alt="arrowNext" className={styles.arrowNext} />
4545
</button>
4646
</div>
4747
);

client/src/pages/login/Login.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default function Login() {
6767
return (
6868
<div className={styles.login}>
6969
<div className={styles.logoImage}>
70-
<img src="./assets/logo.png" alt="user image" />
70+
<img src="/assets/logo.png" alt="user image" />
7171
</div>
7272
<InputBox
7373
type="email"

client/src/utils/sideBarList.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
export const studentSideBarList = ['출석', '회의실 예약', '설정'];
33

44
export const studentSideBarIconList = [
5-
'../../assets/calender-icon.png',
6-
'../../assets/alarm-icon.png',
7-
'../../assets/setting-icon.png',
5+
'/assets/calender-icon.png',
6+
'/assets/alarm-icon.png',
7+
'/assets/setting-icon.png',
88
];
99

1010
export const staffSideBarList = ['출결', '학습자 관리', '회의실 예약'];
1111

1212
export const staffSideBarIconList = [
13-
'../../assets/calender-icon.png',
14-
'../../assets/check-icon.png',
15-
'../../assets/alarm-icon.png',
13+
'/assets/calender-icon.png',
14+
'/assets/check-icon.png',
15+
'/assets/alarm-icon.png',
1616
];
1717

1818
// tab

0 commit comments

Comments
 (0)