[TS] Type Summary component properly
This commit is contained in:
parent
67b501b974
commit
9989dfbf0d
2 changed files with 13 additions and 7 deletions
|
@ -1,3 +1,4 @@
|
|||
import { SummaryProps } from "@types";
|
||||
import { getAssetIDByName } from "@ui/assets";
|
||||
import { ReactNative as RN } from "@metro/common";
|
||||
import { Forms } from "@ui/components";
|
||||
|
@ -5,13 +6,6 @@ import { Forms } from "@ui/components";
|
|||
// TODO: Animated would be awesome
|
||||
// TODO: Destructuring Forms doesn't work here. Why?
|
||||
|
||||
interface SummaryProps {
|
||||
label: string;
|
||||
icon?: string;
|
||||
noPadding?: boolean;
|
||||
children: JSX.Element | JSX.Element[];
|
||||
}
|
||||
|
||||
export default function Summary({ label, icon, noPadding = false, children }: SummaryProps) {
|
||||
const [hidden, setHidden] = React.useState(true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue