Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class renamed to className for style access #65

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/wrapper/src/App.js
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
8 changes: 2 additions & 6 deletions apps/wrapper/src/components/GenericForm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({});
Expand Down Expand Up @@ -127,9 +123,9 @@ const GenericForm = (props) => {
/>
<div className={styles.jsonResponse}>
<div className={styles.toggleBtn}>
<label class={styles.switch}>
<label className={styles.switch}>
<input type="checkbox" value={isXml} onChange={e => handleFormView(e.target.checked)} />
<span class={styles.slider}></span>
<span className={styles.slider}></span>
</label>
{isXml ? <span className='animate__animated animate__fadeIn'>XML</span> : <span className='animate__animated animate__fadeIn'>JSON</span>}
</div>
Expand Down