From 57ad5e01643815fd7ebc2336e500f0f83d815046 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Fri, 12 May 2023 17:24:01 -0500 Subject: [PATCH] simplified tagging --- src/components/AmountEditable.tsx | 4 +- src/components/ContactEditor.tsx | 4 +- src/components/ContactViewer.tsx | 4 +- src/components/TagEditor.tsx | 92 +++++++++-------------- src/components/layout/FullscreenModal.tsx | 4 +- src/components/layout/index.tsx | 12 +-- src/routes/Activity.tsx | 19 ++--- src/routes/Receive.tsx | 58 ++++++++++---- src/routes/Send.tsx | 58 ++++++++++---- src/styles/dialogs.ts | 2 + src/utils/tags.ts | 7 +- 11 files changed, 151 insertions(+), 113 deletions(-) create mode 100644 src/styles/dialogs.ts diff --git a/src/components/AmountEditable.tsx b/src/components/AmountEditable.tsx index a6161c2..0e14b29 100644 --- a/src/components/AmountEditable.tsx +++ b/src/components/AmountEditable.tsx @@ -6,6 +6,7 @@ import { Dialog } from '@kobalte/core'; import close from "~/assets/icons/close.svg"; import pencil from "~/assets/icons/pencil.svg"; import { InlineAmount } from './AmountCard'; +import { DIALOG_CONTENT, DIALOG_POSITIONER } from '~/styles/dialogs'; const CHARACTERS = ["1", "2", "3", "4", "5", "6", "7", "8", "9", ".", "0", "DEL"]; @@ -131,9 +132,6 @@ export const AmountEditable: ParentComponent<{ initialAmountSats: string, initia setIsOpen(false); } - const DIALOG_POSITIONER = "fixed inset-0 safe-top safe-bottom z-50" - const DIALOG_CONTENT = "h-full safe-bottom flex flex-col justify-between p-4 backdrop-blur-xl bg-neutral-800/70" - return (