refactor: adjust setting dialog component

This commit is contained in:
GyDi
2022-11-20 21:48:39 +08:00
parent 3dbc54c8ae
commit 32b72f0ef6
23 changed files with 845 additions and 988 deletions

View File

@@ -13,7 +13,7 @@ interface Props<Value> {
children: ReactNode;
}
function GuardState<T>(props: Props<T>) {
export function GuardState<T>(props: Props<T>) {
const {
value,
children,
@@ -83,5 +83,3 @@ function GuardState<T>(props: Props<T>) {
};
return cloneElement(children, childProps);
}
export default GuardState;