File tree 2 files changed +16
-8
lines changed
2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ const ProfileEdit = () => {
13
13
const isImageSelected =
14
14
imgRef . current && imgRef . current . files && imgRef . current . files . length > 0 ;
15
15
const isDisabled = loading || ! isImageSelected ;
16
+ let a ;
17
+ if ( isDisabled ) {
18
+ a = "[#6F6F6F]" ;
19
+ } else {
20
+ a = "[#002C51]" ;
21
+ }
22
+
16
23
//이미지 미리보기
17
24
const imagePreview = ( ) => {
18
25
const reader = new FileReader ( ) ;
@@ -113,14 +120,14 @@ const ProfileEdit = () => {
113
120
</ div >
114
121
< div className = "flex row" >
115
122
< button
116
- className = " h-[50px] rounded w-1/2 bg-[#002C51] font-[700] text-[#ffff] mt-[24px]"
123
+ className = { ` h-[50px] rounded w-1/2 bg-${ a } font-[700] text-[#ffff] mt-[24px]` }
117
124
onClick = { editHandler }
118
125
disabled = { isDisabled }
119
126
>
120
127
수정 완료
121
128
</ button >
122
129
< button
123
- className = "h-[50px] rounded w-1/2 ml-[15px] bg-[#6F6F6F ] font-[700] text-[#ffff] mt-[24px]"
130
+ className = "h-[50px] rounded w-1/2 ml-[15px] bg-[#002C51 ] font-[700] text-[#ffff] mt-[24px]"
124
131
onClick = { imgResetHandle }
125
132
>
126
133
기본 이미지로 변경
Original file line number Diff line number Diff line change @@ -13,10 +13,11 @@ const NotificationsList = () => {
13
13
const [ notification , setNotification ] = useState ( [ ] ) ;
14
14
15
15
const readAll = async ( ) => {
16
- const promises = notification . map ( ( noti ) =>
17
- instance . get ( `/notifications/${ noti . id } ` )
18
- ) ;
19
- await Promise . all ( promises ) ;
16
+ await instance . put ( "/notifications" ) ;
17
+ // const promises = notification.map((noti) =>
18
+ // instance.get(`/notifications/${noti.id}`)
19
+ // );
20
+ // await Promise.all(promises);
20
21
// 여기서 responses 배열을 처리한다.
21
22
window . location . reload ( ) ;
22
23
} ;
@@ -128,9 +129,9 @@ const NotificationsList = () => {
128
129
< div className = "flex flex-row-reverse" >
129
130
< div
130
131
onClick = { readAll }
131
- className = " text-[12px ] font-extralight items-center w-[100px] flex h-[19px ] justify-center rounded-[4px] text-black bg-[#E8E8E8] cursor-pointer"
132
+ className = " text-[14px ] font-extralight items-center w-[100px] flex h-[40px ] justify-center rounded-[4px] text-[#002C51] cursor-pointer"
132
133
>
133
- 모두 읽음처리
134
+ 모두 읽음표시
134
135
</ div >
135
136
</ div >
136
137
< div >
You can’t perform that action at this time.
0 commit comments