mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-18 13:39:31 +02:00
refactor: getGroups to null
This commit is contained in:
@@ -20,8 +20,6 @@ const exampleCards: CardExampleType<InitialValuesType>[] = [
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
const getGroups = () => [];
|
|
||||||
|
|
||||||
export default function XmlBeautifier({
|
export default function XmlBeautifier({
|
||||||
title,
|
title,
|
||||||
longDescription
|
longDescription
|
||||||
@@ -47,7 +45,7 @@ export default function XmlBeautifier({
|
|||||||
resultComponent={<ToolTextResult value={result} extension="xml" />}
|
resultComponent={<ToolTextResult value={result} extension="xml" />}
|
||||||
initialValues={initialValues}
|
initialValues={initialValues}
|
||||||
exampleCards={exampleCards}
|
exampleCards={exampleCards}
|
||||||
getGroups={getGroups}
|
getGroups={null}
|
||||||
setInput={setInput}
|
setInput={setInput}
|
||||||
compute={compute}
|
compute={compute}
|
||||||
toolInfo={{ title: `What is a ${title}?`, description: longDescription }}
|
toolInfo={{ title: `What is a ${title}?`, description: longDescription }}
|
||||||
|
@@ -10,8 +10,6 @@ import { InitialValuesType } from './types';
|
|||||||
|
|
||||||
const initialValues: InitialValuesType = {};
|
const initialValues: InitialValuesType = {};
|
||||||
|
|
||||||
const getGroups = () => [];
|
|
||||||
|
|
||||||
const exampleCards: CardExampleType<InitialValuesType>[] = [
|
const exampleCards: CardExampleType<InitialValuesType>[] = [
|
||||||
{
|
{
|
||||||
title: 'Validate XML',
|
title: 'Validate XML',
|
||||||
@@ -54,7 +52,7 @@ export default function XmlValidator({
|
|||||||
resultComponent={<ToolTextResult value={result} extension="txt" />}
|
resultComponent={<ToolTextResult value={result} extension="txt" />}
|
||||||
initialValues={initialValues}
|
initialValues={initialValues}
|
||||||
exampleCards={exampleCards}
|
exampleCards={exampleCards}
|
||||||
getGroups={getGroups}
|
getGroups={null}
|
||||||
setInput={setInput}
|
setInput={setInput}
|
||||||
compute={compute}
|
compute={compute}
|
||||||
toolInfo={{ title: `What is a ${title}?`, description: longDescription }}
|
toolInfo={{ title: `What is a ${title}?`, description: longDescription }}
|
||||||
|
@@ -20,8 +20,6 @@ const exampleCards: CardExampleType<InitialValuesType>[] = [
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
const getGroups = () => [];
|
|
||||||
|
|
||||||
export default function XmlViewer({
|
export default function XmlViewer({
|
||||||
title,
|
title,
|
||||||
longDescription
|
longDescription
|
||||||
@@ -47,7 +45,7 @@ export default function XmlViewer({
|
|||||||
resultComponent={<ToolTextResult value={result} extension="xml" />}
|
resultComponent={<ToolTextResult value={result} extension="xml" />}
|
||||||
initialValues={initialValues}
|
initialValues={initialValues}
|
||||||
exampleCards={exampleCards}
|
exampleCards={exampleCards}
|
||||||
getGroups={getGroups}
|
getGroups={null}
|
||||||
setInput={setInput}
|
setInput={setInput}
|
||||||
compute={compute}
|
compute={compute}
|
||||||
toolInfo={{ title: `What is a ${title}?`, description: longDescription }}
|
toolInfo={{ title: `What is a ${title}?`, description: longDescription }}
|
||||||
|
Reference in New Issue
Block a user