From 936116f081a34e86697d19e0b04958262dbf99e6 Mon Sep 17 00:00:00 2001 From: "Ibrahima G. Coulibaly" Date: Tue, 8 Jul 2025 22:35:39 +0100 Subject: [PATCH] refactor: getGroups to null --- src/pages/tools/xml/xml-beautifier/index.tsx | 4 +--- src/pages/tools/xml/xml-validator/index.tsx | 4 +--- src/pages/tools/xml/xml-viewer/index.tsx | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/pages/tools/xml/xml-beautifier/index.tsx b/src/pages/tools/xml/xml-beautifier/index.tsx index 456d9fc..66172d2 100644 --- a/src/pages/tools/xml/xml-beautifier/index.tsx +++ b/src/pages/tools/xml/xml-beautifier/index.tsx @@ -20,8 +20,6 @@ const exampleCards: CardExampleType[] = [ } ]; -const getGroups = () => []; - export default function XmlBeautifier({ title, longDescription @@ -47,7 +45,7 @@ export default function XmlBeautifier({ resultComponent={} initialValues={initialValues} exampleCards={exampleCards} - getGroups={getGroups} + getGroups={null} setInput={setInput} compute={compute} toolInfo={{ title: `What is a ${title}?`, description: longDescription }} diff --git a/src/pages/tools/xml/xml-validator/index.tsx b/src/pages/tools/xml/xml-validator/index.tsx index ac2cb1b..96c50dc 100644 --- a/src/pages/tools/xml/xml-validator/index.tsx +++ b/src/pages/tools/xml/xml-validator/index.tsx @@ -10,8 +10,6 @@ import { InitialValuesType } from './types'; const initialValues: InitialValuesType = {}; -const getGroups = () => []; - const exampleCards: CardExampleType[] = [ { title: 'Validate XML', @@ -54,7 +52,7 @@ export default function XmlValidator({ resultComponent={} initialValues={initialValues} exampleCards={exampleCards} - getGroups={getGroups} + getGroups={null} setInput={setInput} compute={compute} toolInfo={{ title: `What is a ${title}?`, description: longDescription }} diff --git a/src/pages/tools/xml/xml-viewer/index.tsx b/src/pages/tools/xml/xml-viewer/index.tsx index 91aef1f..c6262d6 100644 --- a/src/pages/tools/xml/xml-viewer/index.tsx +++ b/src/pages/tools/xml/xml-viewer/index.tsx @@ -20,8 +20,6 @@ const exampleCards: CardExampleType[] = [ } ]; -const getGroups = () => []; - export default function XmlViewer({ title, longDescription @@ -47,7 +45,7 @@ export default function XmlViewer({ resultComponent={} initialValues={initialValues} exampleCards={exampleCards} - getGroups={getGroups} + getGroups={null} setInput={setInput} compute={compute} toolInfo={{ title: `What is a ${title}?`, description: longDescription }}