-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4394 from thematters/feat/revise-set-payment-pass…
…word Feat/revise set payment password
- Loading branch information
Showing
18 changed files
with
115 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { createContext, useState } from 'react' | ||
|
||
export const PaymentPasswordContext = createContext( | ||
{} as { | ||
hasPaymentPassword: boolean | ||
setHasPaymentPassword: (hasPaymentPassword: boolean) => void | ||
} | ||
) | ||
|
||
export const PaymentPasswordProvider = ({ | ||
children, | ||
hasPaymentPassword: _hasPaymentPassword, | ||
}: { | ||
children: React.ReactNode | ||
hasPaymentPassword: boolean | ||
}) => { | ||
const [hasPaymentPassword, setHasPaymentPassword] = | ||
useState(_hasPaymentPassword) | ||
|
||
return ( | ||
<PaymentPasswordContext.Provider | ||
value={{ hasPaymentPassword, setHasPaymentPassword }} | ||
> | ||
{children} | ||
</PaymentPasswordContext.Provider> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 4 additions & 12 deletions
16
src/components/Dialogs/SetPaymentPasswordDialog/styles.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
.reason { | ||
padding: var(--sp24) 0; | ||
margin: 0 var(--sp16); | ||
font-size: var(--text16); | ||
font-weight: var(--font-bold); | ||
line-height: 1.5rem; | ||
text-align: center; | ||
} | ||
|
||
.hint { | ||
margin-top: var(--sp8); | ||
margin-bottom: var(--sp24); | ||
font-size: var(--text14); | ||
font-weight: var(--font-normal); | ||
color: var(--color-grey); | ||
line-height: 1.375rem; | ||
color: var(--color-grey-darker); | ||
text-align: left; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
@mixin flex-center-all; | ||
|
||
width: 100%; | ||
padding: 0 var(--sp16); | ||
margin: 0 auto; | ||
|
||
& .pinInputItem { | ||
|
Oops, something went wrong.