mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-02-23 07:04:19 +01:00
feat: X button and escape now setIsEditing(false)
This commit is contained in:
@@ -51,12 +51,18 @@ export function ContactViewer(props: {
|
||||
<div class={DIALOG_POSITIONER}>
|
||||
<Dialog.Content
|
||||
class={DIALOG_CONTENT}
|
||||
onEscapeKeyDown={() => setIsOpen(false)}
|
||||
onEscapeKeyDown={() => {
|
||||
setIsOpen(false);
|
||||
setIsEditing(false);
|
||||
}}
|
||||
>
|
||||
<div class="w-full flex justify-end">
|
||||
<button
|
||||
tabindex="-1"
|
||||
onClick={() => setIsOpen(false)}
|
||||
onClick={() => {
|
||||
setIsOpen(false);
|
||||
setIsEditing(false);
|
||||
}}
|
||||
class="hover:bg-white/10 rounded-lg active:bg-m-blue"
|
||||
>
|
||||
<img src={close} alt="Close" />
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Button, InnerCard, NiceP, VStack} from "~/components/layout";
|
||||
import {useMegaStore} from "~/state/megaStore";
|
||||
import { Button, InnerCard, NiceP, VStack } from "~/components/layout";
|
||||
import { useMegaStore } from "~/state/megaStore";
|
||||
|
||||
export function ResyncOnchain() {
|
||||
const [state, _] = useMegaStore();
|
||||
@@ -16,7 +16,8 @@ export function ResyncOnchain() {
|
||||
<InnerCard>
|
||||
<VStack>
|
||||
<NiceP>
|
||||
On-chain balance seems incorrect? Try re-syncing the on-chain wallet.
|
||||
On-chain balance seems incorrect? Try re-syncing the
|
||||
on-chain wallet.
|
||||
</NiceP>
|
||||
<Button intent="red" onClick={reset}>
|
||||
Resync wallet
|
||||
|
||||
Reference in New Issue
Block a user