diff --git a/components/CreateSecret/CustomExpireInForm.tsx b/components/CreateSecret/CustomExpireInForm.tsx new file mode 100644 index 0000000..808bdc8 --- /dev/null +++ b/components/CreateSecret/CustomExpireInForm.tsx @@ -0,0 +1,65 @@ +import { signal } from "@preact/signals"; +import { scrollNumberInputValue } from "@/src/utils/wheelEventHandler.ts"; +const isCustomExpireIn = signal(false); + +export default function CustomExpireInForm() { + return ( + <> + { + isCustomExpireIn.value = !isCustomExpireIn.value; + }} + /> + + {isCustomExpireIn.value && ( + <> +
+ {/* placeholder div to keep the first grid column empty */} +
+
+ + + +
+ + )} + + ); +} diff --git a/components/CreateSecret/ExpireForm.tsx b/components/CreateSecret/ExpireForm.tsx deleted file mode 100644 index 47f107c..0000000 --- a/components/CreateSecret/ExpireForm.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import { signal } from "@preact/signals"; -import { scrollNumberInputValue } from "@/src/utils/wheelEventHandler.ts"; -const isCustomExpireIn = signal(false); - -export default function ExpireForm() { - return ( - <> - - {isCustomExpireIn.value && ( -
- - -   - - -
- )} - - ); -} diff --git a/components/CreateSecret/PassphraseInput.tsx b/components/CreateSecret/PassphraseInput.tsx index 4754d72..3b0430a 100644 --- a/components/CreateSecret/PassphraseInput.tsx +++ b/components/CreateSecret/PassphraseInput.tsx @@ -5,30 +5,35 @@ const usePassphrase = signal(false); export default function PassphraseInput() { return ( <> -