refactor: more TS code

This commit is contained in:
Tristan Yang
2022-07-14 22:22:05 +08:00
parent c2797a132c
commit 65049677e4
12 changed files with 54 additions and 33 deletions
@@ -100,7 +100,7 @@ interface Props {
closeModal: () => void;
title?: string;
navs: Nav[];
dangers: Danger[];
dangers: [Danger | boolean];
nav: { title: string; name?: string; component?: ReactNode };
children: ReactNode;
}