@@ -12,6 +12,7 @@ import PlusIcon from 'src/components/icons/plus.svg'
1212import { Box } from 'src/components/layout/Box'
1313import { ScreenContentFrame } from 'src/components/layout/ScreenContentFrame'
1414import { MAX_SEND_TOKEN_SIZE , MAX_SEND_TOKEN_SIZE_LEDGER } from 'src/consts'
15+ import { pincodeActions } from 'src/features/pincode/pincode'
1516import { setTxSizeLimitEnabled } from 'src/features/settings/settingsSlice'
1617import { Color } from 'src/styles/Color'
1718import { Font } from 'src/styles/fonts'
@@ -23,6 +24,11 @@ export function SettingsScreen() {
2324 const dispatch = useDispatch ( )
2425 const navigate = useNavigate ( )
2526
27+ const onClickChangePassword = ( ) => {
28+ dispatch ( pincodeActions . reset ( ) )
29+ navigate ( '/change-pin' )
30+ }
31+
2632 const onClickAddToken = ( ) => {
2733 navigate ( '/balances' )
2834 }
@@ -56,18 +62,16 @@ export function SettingsScreen() {
5662 </ Box >
5763 </ Link >
5864 </ div >
59- < div css = { style . pageLinkBox } >
60- < Link to = "/change-pin" >
61- < Box direction = "row" align = "center" >
62- < img src = { LockIcon } alt = "change pin" css = { style . pageLinkIcon } />
63- < div >
64- < h3 css = { style . h3 } > Change Password</ h3 >
65- < div css = { style . description } >
66- Set the password used to unlock your account on this device.
67- </ div >
65+ < div css = { style . pageLinkBox } onClick = { onClickChangePassword } >
66+ < Box direction = "row" align = "center" >
67+ < img src = { LockIcon } alt = "change pin" css = { style . pageLinkIcon } />
68+ < div >
69+ < h3 css = { style . h3 } > Change Password</ h3 >
70+ < div css = { style . description } >
71+ Set the password used to unlock your account on this device.
6872 </ div >
69- </ Box >
70- </ Link >
73+ </ div >
74+ </ Box >
7175 </ div >
7276 </ Box >
7377 < HrDivider styles = { style . divider } />
@@ -158,6 +162,7 @@ const style: Stylesheet = {
158162 margin : '2em 0' ,
159163 } ,
160164 pageLinkBox : {
165+ cursor : 'pointer' ,
161166 marginTop : '1em' ,
162167 width : '20em' ,
163168 padding : '1em' ,
0 commit comments