mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-07 09:24:55 +05:30
refactor: getGroups to null
This commit is contained in:
parent
d60890b1a5
commit
936116f081
3 changed files with 3 additions and 9 deletions
|
|
@ -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 }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue