From 7f3275b705d90b6957e8052651991f2b98fd2dd2 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Sun, 9 Oct 2022 18:07:04 +0800 Subject: [PATCH] [ui][dialog] make isShown prop required --- packages/ui/src/Dialog/Dialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/Dialog/Dialog.tsx b/packages/ui/src/Dialog/Dialog.tsx index 242b05af..5b759724 100644 --- a/packages/ui/src/Dialog/Dialog.tsx +++ b/packages/ui/src/Dialog/Dialog.tsx @@ -4,7 +4,7 @@ import { Dialog as HeadlessDialog, Transition } from '@headlessui/react'; type Props = Readonly<{ children: React.ReactNode; - isShown?: boolean; + isShown: boolean; onClose: () => void; primaryButton: React.ReactNode; secondaryButton?: React.ReactNode;