@@ -228,12 +228,7 @@ const ManageSign = () => {
228
228
}
229
229
}
230
230
} ;
231
- const handleSignatureBtn = ( ) => {
232
- if ( imageRef . current ) {
233
- imageRef . current . value = "" ;
234
- }
235
- setImage ( "" ) ;
236
- } ;
231
+
237
232
const handleUploadBtn = ( ) => {
238
233
imageRef . current . click ( ) ;
239
234
} ;
@@ -251,27 +246,13 @@ const ManageSign = () => {
251
246
{ isAlert ?. message && < Alert type = { isAlert . type } > { isAlert . message } </ Alert > }
252
247
< div className = "relative w-full pr-[10px]" >
253
248
< div className = "m-[20px]" >
254
- < div className = "font-[700] text-[15px] pb-[8px] " > My Signature</ div >
255
- < div className = " flex flex-col md:flex-row gap-0 md:gap-[12px] mt-4 " >
249
+ < div className = "text-[20px] font-semibold mb-3 " > My Signature</ div >
250
+ < div className = "flex flex-col md:flex-row gap-0 md:gap-[12px]" >
256
251
< div >
257
252
< div className = "relative" >
258
253
< div className = "flex flex-row justify-between w-1/2 pl-[10px]" >
259
254
< div className = "flex flex-row justify-around items-center gap-[10px] mb-[10px]" >
260
- < >
261
- < span
262
- onClick = { ( ) => handleSignatureBtn ( ) }
263
- className = "signature"
264
- >
265
- Signature
266
- </ span >
267
- </ >
268
-
269
- < span
270
- onClick = { ( ) => handleUploadBtn ( ) }
271
- className = "signature min-w-[105px]"
272
- >
273
- Upload Image
274
- </ span >
255
+ < span className = "font-medium select-none" > Signature</ span >
275
256
< input
276
257
type = "file"
277
258
onChange = { onImageChange }
@@ -308,19 +289,10 @@ const ManageSign = () => {
308
289
dotSize = { 1 }
309
290
/>
310
291
) }
311
- < div
312
- style = { {
313
- display : "flex" ,
314
- flexDirection : "row" ,
315
- justifyContent : "space-between"
316
- } }
317
- className = "penContainerDefault"
318
- >
292
+ < div className = "penContainerDefault flex flex-row justify-between" >
319
293
< div >
320
294
{ ! image && (
321
- < div
322
- style = { { display : "flex" , flexDirection : "row" } }
323
- >
295
+ < div className = "flex flex-row" >
324
296
{ allColor . map ( ( data , key ) => {
325
297
return (
326
298
< i
@@ -355,7 +327,14 @@ const ManageSign = () => {
355
327
</ div >
356
328
) }
357
329
</ div >
358
- < div >
330
+ < div className = "flex flex-row gap-2" >
331
+ < div
332
+ type = "button"
333
+ className = "op-link"
334
+ onClick = { ( ) => handleUploadBtn ( ) }
335
+ >
336
+ Upload image
337
+ </ div >
359
338
< div
360
339
type = "button"
361
340
className = "op-link"
@@ -367,33 +346,21 @@ const ManageSign = () => {
367
346
</ div >
368
347
</ div >
369
348
{ warning && (
370
- < div
371
- className = "warning signWarning"
372
- style = { { fontSize : 12 } }
373
- >
374
- < i
375
- className = "fa-light fa-exclamation-circle"
376
- style = { { color : "#fab005" , fontSize : 15 } }
377
- > </ i > { " " }
349
+ < div className = "warning signWarning text-[12px]" >
350
+ < i className = "fa-light fa-exclamation-circle text-[#fab005] text-[15px] mr-[4px]" > </ i >
378
351
Please upload signature/Image
379
352
</ div >
380
353
) }
381
354
</ div >
382
355
</ div >
383
356
</ div >
384
- < div style = { { position : "relative" } } >
385
- < div style = { { margin : "6px 5px 18px" } } >
386
- < span className = "signature " > Initials</ span >
357
+ < div className = "relative" >
358
+ < div className = "mb-[10px]" >
359
+ < span className = "font-medium select-none " > Initials</ span >
387
360
</ div >
388
361
< div >
389
362
{ isInitials ? (
390
- < div
391
- style = { {
392
- position : "relative" ,
393
- border : "2px solid #888"
394
- } }
395
- className = "intialSignature"
396
- >
363
+ < div className = "intialSignature relative border-[1px] border-[#888]" >
397
364
< img
398
365
alt = "inititals"
399
366
src = { Initials }
0 commit comments