mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-29 16:16:02 +00:00
feat: minify json
This commit is contained in:
@@ -18,7 +18,7 @@ export interface ExampleCardProps<T> {
|
||||
sampleResult: string;
|
||||
sampleOptions: T;
|
||||
changeInputResult: (newInput: string, newOptions: T) => void;
|
||||
getGroups: GetGroupsType<T>;
|
||||
getGroups: GetGroupsType<T> | null;
|
||||
}
|
||||
|
||||
export default function ExampleCard<T>({
|
||||
|
||||
@@ -7,12 +7,12 @@ export default function ExampleOptions<T>({
|
||||
getGroups
|
||||
}: {
|
||||
options: T;
|
||||
getGroups: GetGroupsType<T>;
|
||||
getGroups: GetGroupsType<T> | null;
|
||||
}) {
|
||||
return (
|
||||
<ToolOptionGroups
|
||||
// @ts-ignore
|
||||
groups={getGroups({ values: options })}
|
||||
groups={getGroups?.({ values: options }) ?? []}
|
||||
vertical
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -13,7 +13,7 @@ export interface ExampleProps<T> {
|
||||
title: string;
|
||||
subtitle?: string;
|
||||
exampleCards: CardExampleType<T>[];
|
||||
getGroups: GetGroupsType<T>;
|
||||
getGroups: GetGroupsType<T> | null;
|
||||
formRef: React.RefObject<FormikProps<T>>;
|
||||
setInput: React.Dispatch<React.SetStateAction<any>>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user