From db9d08b7f3a9d73da7632f13a67f2424db08bb32 Mon Sep 17 00:00:00 2001 From: Aarnav Tale Date: Thu, 28 Mar 2024 14:20:19 -0400 Subject: [PATCH] feat: add modal to disable magic dns --- app/routes/_data.dns._index/rename.tsx | 31 ++++++++------ app/routes/_data.dns._index/route.tsx | 59 +++++++++++++++++++++++++- 2 files changed, 75 insertions(+), 15 deletions(-) diff --git a/app/routes/_data.dns._index/rename.tsx b/app/routes/_data.dns._index/rename.tsx index 0eb49e3..2c91b7a 100644 --- a/app/routes/_data.dns._index/rename.tsx +++ b/app/routes/_data.dns._index/rename.tsx @@ -1,7 +1,12 @@ import { Dialog } from '@headlessui/react' +import { Form } from '@remix-run/react' import { useState } from 'react' -export default function Modal() { +type Properties = { + readonly name: string; +} + +export default function Modal({ name }: Properties) { const [isOpen, setIsOpen] = useState(false) return ( @@ -22,29 +27,29 @@ export default function Modal() { }} > ) }