mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-05 16:34:57 +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({
|
||||
title,
|
||||
longDescription
|
||||
|
|
@ -47,7 +45,7 @@ export default function XmlBeautifier({
|
|||
resultComponent={<ToolTextResult value={result} extension="xml" />}
|
||||
initialValues={initialValues}
|
||||
exampleCards={exampleCards}
|
||||
getGroups={getGroups}
|
||||
getGroups={null}
|
||||
setInput={setInput}
|
||||
compute={compute}
|
||||
toolInfo={{ title: `What is a ${title}?`, description: longDescription }}
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@ import { InitialValuesType } from './types';
|
|||
|
||||
const initialValues: InitialValuesType = {};
|
||||
|
||||
const getGroups = () => [];
|
||||
|
||||
const exampleCards: CardExampleType<InitialValuesType>[] = [
|
||||
{
|
||||
title: 'Validate XML',
|
||||
|
|
@ -54,7 +52,7 @@ export default function XmlValidator({
|
|||
resultComponent={<ToolTextResult value={result} extension="txt" />}
|
||||
initialValues={initialValues}
|
||||
exampleCards={exampleCards}
|
||||
getGroups={getGroups}
|
||||
getGroups={null}
|
||||
setInput={setInput}
|
||||
compute={compute}
|
||||
toolInfo={{ title: `What is a ${title}?`, description: longDescription }}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,6 @@ const exampleCards: CardExampleType<InitialValuesType>[] = [
|
|||
}
|
||||
];
|
||||
|
||||
const getGroups = () => [];
|
||||
|
||||
export default function XmlViewer({
|
||||
title,
|
||||
longDescription
|
||||
|
|
@ -47,7 +45,7 @@ export default function XmlViewer({
|
|||
resultComponent={<ToolTextResult value={result} extension="xml" />}
|
||||
initialValues={initialValues}
|
||||
exampleCards={exampleCards}
|
||||
getGroups={getGroups}
|
||||
getGroups={null}
|
||||
setInput={setInput}
|
||||
compute={compute}
|
||||
toolInfo={{ title: `What is a ${title}?`, description: longDescription }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue