mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-01-10 01:34:26 +01:00
Close dialog on select receive flavor
This commit is contained in:
committed by
Paul Miller
parent
ef603673f9
commit
dd28f5be04
@@ -319,6 +319,11 @@ export default function Receive() {
|
||||
}
|
||||
}
|
||||
|
||||
function selectFlavor(flavor: string) {
|
||||
setFlavor(flavor as ReceiveFlavor);
|
||||
setMethodChooserOpen(false);
|
||||
}
|
||||
|
||||
const [paidState, { refetch }] = createResource(bip21Raw, checkIfPaid);
|
||||
|
||||
const network = state.mutiny_wallet?.get_network() as Network;
|
||||
@@ -422,7 +427,7 @@ export default function Receive() {
|
||||
>
|
||||
<StyledRadioGroup
|
||||
value={flavor()}
|
||||
onValueChange={setFlavor}
|
||||
onValueChange={selectFlavor}
|
||||
choices={RECEIVE_FLAVORS}
|
||||
accent="white"
|
||||
vertical
|
||||
|
||||
Reference in New Issue
Block a user