diff --git a/src/components/AmountEditable.tsx b/src/components/AmountEditable.tsx index 8b6f00e..a6161c2 100644 --- a/src/components/AmountEditable.tsx +++ b/src/components/AmountEditable.tsx @@ -135,7 +135,7 @@ export const AmountEditable: ParentComponent<{ initialAmountSats: string, initia const DIALOG_CONTENT = "h-full safe-bottom flex flex-col justify-between p-4 backdrop-blur-xl bg-neutral-800/70" return ( - + - setConfirmOpen(false)}> + setConfirmOpen(false)}> This will delete your node's state. This can't be undone! diff --git a/src/components/Dialog.tsx b/src/components/Dialog.tsx index 4ec624a..73197c6 100644 --- a/src/components/Dialog.tsx +++ b/src/components/Dialog.tsx @@ -7,9 +7,9 @@ const DIALOG_POSITIONER = "fixed inset-0 z-50 flex items-center justify-center" const DIALOG_CONTENT = "w-[80vw] max-w-[400px] p-4 bg-gray/50 backdrop-blur-md shadow-xl rounded-xl border border-white/10" // TODO: implement this like toast so it's just one global confirm and I can call it with `confirm({ title: "Are you sure?", description: "This will delete your node" })` -export const ConfirmDialog: ParentComponent<{ isOpen: boolean; loading: boolean; onCancel: () => void, onConfirm: () => void }> = (props) => { +export const ConfirmDialog: ParentComponent<{ open: boolean; loading: boolean; onCancel: () => void, onConfirm: () => void }> = (props) => { return ( - +
diff --git a/src/components/ImportExport.tsx b/src/components/ImportExport.tsx index e22a48a..983b569 100644 --- a/src/components/ImportExport.tsx +++ b/src/components/ImportExport.tsx @@ -67,7 +67,7 @@ export function ImportExport() { - setConfirmOpen(false)}> + setConfirmOpen(false)}> Do you want to replace your state with {files()[0].name}? diff --git a/src/components/JsonModal.tsx b/src/components/JsonModal.tsx index 29ec256..5cafb10 100644 --- a/src/components/JsonModal.tsx +++ b/src/components/JsonModal.tsx @@ -13,7 +13,7 @@ export function JsonModal(props: { title: string, open: boolean, data?: unknown, const [copy, copied] = useCopy({ copiedTimeout: 1000 }); return ( - props.setOpen(isOpen)}> + props.setOpen(isOpen)}>
diff --git a/src/components/KitchenSink.tsx b/src/components/KitchenSink.tsx index a37c0b7..5f8e353 100644 --- a/src/components/KitchenSink.tsx +++ b/src/components/KitchenSink.tsx @@ -167,7 +167,7 @@ function ChannelItem(props: { channel: MutinyChannel, network?: string }) { - setConfirmOpen(false)} loading={confirmLoading()}> + setConfirmOpen(false)} loading={confirmLoading()}>

Are you sure you want to close this channel?

diff --git a/src/components/layout/FullscreenModal.tsx b/src/components/layout/FullscreenModal.tsx index 12202fd..c87bb8f 100644 --- a/src/components/layout/FullscreenModal.tsx +++ b/src/components/layout/FullscreenModal.tsx @@ -18,7 +18,7 @@ type FullscreenModalProps = { export function FullscreenModal(props: FullscreenModalProps) { return ( - props.setOpen(isOpen)}> + props.setOpen(isOpen)}>
diff --git a/src/components/layout/Radio.tsx b/src/components/layout/Radio.tsx index 6c1d421..7de314c 100644 --- a/src/components/layout/Radio.tsx +++ b/src/components/layout/Radio.tsx @@ -7,7 +7,7 @@ type Choices = { value: string, label: string, caption: string }[] export function StyledRadioGroup(props: { value: string, choices: Choices, onValueChange: (value: string) => void, small?: boolean, accent?: "red" | "white" }) { return ( // TODO: rewrite this with CVA, props are bad for tailwind - props.onValueChange(e)} + props.onValueChange(e)} class={"grid w-full gap-4"} classList={{ "grid-cols-2": props.choices.length === 2, "grid-cols-3": props.choices.length === 3, "gap-2": props.small }} >