From 64d49135f258cc56fc007d47cf0e23ac3effee09 Mon Sep 17 00:00:00 2001 From: Aakash Verma Date: Mon, 5 Jun 2023 12:01:50 +0000 Subject: [PATCH] class renamed to className for style access --- apps/wrapper/src/App.js | 2 +- apps/wrapper/src/components/GenericForm/index.js | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/wrapper/src/App.js b/apps/wrapper/src/App.js index 5d5fceb1..7550b983 100644 --- a/apps/wrapper/src/App.js +++ b/apps/wrapper/src/App.js @@ -1,5 +1,5 @@ import './App.css'; -import React, { useState, useEffect } from 'react'; +import React, { useState } from 'react'; import GenericForm from './components/GenericForm'; function App() { diff --git a/apps/wrapper/src/components/GenericForm/index.js b/apps/wrapper/src/components/GenericForm/index.js index 68a676ad..f7cf5633 100644 --- a/apps/wrapper/src/components/GenericForm/index.js +++ b/apps/wrapper/src/components/GenericForm/index.js @@ -14,10 +14,6 @@ const GenericForm = (props) => { const [formDataJson, setFormDataJSON] = useState(""); const [isXml, setIsXml] = useState(false); - // Encode string method to URI - const encodeFunction = (func) => { - return encodeURIComponent(JSON.stringify(func)); - } const startingForm = formSpec.startingForm; const [fileUrls, setFileUrls] = useState({}); @@ -127,9 +123,9 @@ const GenericForm = (props) => { />
-