@@ -671,18 +671,21 @@ function WidgetsValueModal(props) {
671
671
}
672
672
}
673
673
if ( isTab === "type" ) {
674
+ const signerName = localStorage . getItem ( "signer" )
675
+ ? JSON . parse ( localStorage . getItem ( "signer" ) ) ?. Name
676
+ : currentUserName ;
674
677
//trim user name or typed name value to show in initial signature
675
678
const trimmedName = typedSignature
676
679
? typedSignature ?. trim ( )
677
680
: props ?. journey === "kiosk-signing" && kiosk_signer
678
681
? kiosk_signer [ 0 ] ?. Name ?. trim ( )
679
- : currentUserName ?. trim ( ) ;
682
+ : signerName ?. trim ( ) ;
680
683
//get full name of user
681
684
const fullUserName =
682
685
typedSignature ||
683
686
( props ?. journey === "kiosk-signing" && kiosk_signer
684
687
? kiosk_signer [ 0 ] ?. Name
685
- : currentUserName ) ;
688
+ : signerName ) ;
686
689
const firstCharacter = trimmedName ?. charAt ( 0 ) ;
687
690
const userName =
688
691
currWidgetsDetails ?. type === "initials" ? firstCharacter : fullUserName ;
@@ -1201,8 +1204,8 @@ function WidgetsValueModal(props) {
1201
1204
)
1202
1205
) : isTab === "type" ? (
1203
1206
< >
1204
- < div className = "flex justify-between items-center tabWidth" >
1205
- < span className = "mr -[5px] text-[12px]" >
1207
+ < div className = "flex justify-between items-center tabWidth rounded-[4px] " >
1208
+ < span className = "ml -[5px] text-[12px] text-base-content " >
1206
1209
{ currWidgetsDetails ?. type === "initials"
1207
1210
? t ( "initial-teb" )
1208
1211
: t ( "signature-tab" ) }
@@ -1229,7 +1232,7 @@ function WidgetsValueModal(props) {
1229
1232
} }
1230
1233
/>
1231
1234
</ div >
1232
- < div className = "border-[1px] border-[#d6d3d3] mt-[10px] ml-[5px ]" >
1235
+ < div className = "border-[1px] border-[#d6d3d3] mt-[10px] rounded-[4px ]" >
1233
1236
{ fontOptions . map ( ( font , ind ) => {
1234
1237
return (
1235
1238
< div
@@ -1252,7 +1255,7 @@ function WidgetsValueModal(props) {
1252
1255
>
1253
1256
{ typedSignature
1254
1257
? typedSignature
1255
- : "Your signature" }
1258
+ : t ( "Your-Signature" ) }
1256
1259
</ div >
1257
1260
</ div >
1258
1261
) ;
@@ -1656,7 +1659,7 @@ function WidgetsValueModal(props) {
1656
1659
}
1657
1660
} , [ ] ) ;
1658
1661
return (
1659
- < span className = "text-center text-[12px]" >
1662
+ < span className = "text-center text-[12px] text-base-content " >
1660
1663
{ t ( "required-mssg" , { leftRequiredWidget, totalWidget } ) }
1661
1664
</ span >
1662
1665
) ;
@@ -1888,15 +1891,15 @@ function WidgetsValueModal(props) {
1888
1891
{ isFinish ? (
1889
1892
< >
1890
1893
< div className = "p-1 mt-3" >
1891
- < span className = "text-base" > { t ( "finish-mssg" ) } </ span >
1894
+ < span className = "text-base text-base-content" >
1895
+ { t ( "finish-mssg" ) }
1896
+ </ span >
1892
1897
</ div >
1893
1898
< div className = "flex gap-3 items-center mt-4" >
1894
1899
< button
1895
1900
type = "button"
1896
1901
className = "op-btn op-btn-primary op-btn-sm px-4"
1897
- onClick = { ( ) => {
1898
- handleFinish ( ) ;
1899
- } }
1902
+ onClick = { ( ) => handleFinish ( ) }
1900
1903
>
1901
1904
{ t ( "finish" ) }
1902
1905
</ button >
@@ -1956,9 +1959,7 @@ function WidgetsValueModal(props) {
1956
1959
< button
1957
1960
type = "button"
1958
1961
className = "op-btn op-btn-primary op-btn-sm"
1959
- onClick = { ( ) => {
1960
- handleClickOnNext ( ) ;
1961
- } }
1962
+ onClick = { ( ) => handleClickOnNext ( ) }
1962
1963
disabled = { handleDisable ( ) }
1963
1964
>
1964
1965
{ t ( "save" ) }
@@ -1968,20 +1969,15 @@ function WidgetsValueModal(props) {
1968
1969
type = "button"
1969
1970
className = "op-btn op-btn-primary op-btn-sm"
1970
1971
disabled = { handleDisable ( ) }
1971
- onClick = { ( ) => {
1972
- const isFinishDoc = true ;
1973
- handleClickOnNext ( isFinishDoc ) ;
1974
- } }
1972
+ onClick = { ( ) => handleClickOnNext ( true ) } // isFinishDoc
1975
1973
>
1976
1974
{ t ( "done" ) }
1977
1975
</ button >
1978
1976
) : (
1979
1977
< button
1980
1978
type = "button"
1981
1979
className = "op-btn op-btn-primary op-btn-sm text-xs md:text-sm"
1982
- onClick = { ( ) => {
1983
- handleClickOnNext ( ) ;
1984
- } }
1980
+ onClick = { ( ) => handleClickOnNext ( ) }
1985
1981
disabled = { handleDisable ( ) }
1986
1982
>
1987
1983
{ t ( "next-field" ) }
0 commit comments