eslint cleanup
This commit is contained in:
parent
35475e36db
commit
b0b6e7084e
@ -1,7 +1,7 @@
|
||||
import React, { useState } from 'react';
|
||||
import RetakesConfig from '../types/RetakesConfig';
|
||||
import AllDecks from './AllDecks';
|
||||
import MenuBar from './MenuBar';
|
||||
import React, { useState } from "react"
|
||||
import RetakesConfig from "../types/RetakesConfig"
|
||||
import AllDecks from "./AllDecks"
|
||||
import MenuBar from "./MenuBar"
|
||||
|
||||
function App() {
|
||||
|
||||
@ -21,7 +21,7 @@ function App() {
|
||||
/>
|
||||
<AllDecks retakesConfig={retakesConfig} onChange={(newConfig)=>setRetakesConfig(newConfig)} />
|
||||
</div>
|
||||
);
|
||||
)
|
||||
}
|
||||
|
||||
export default App;
|
||||
export default App
|
||||
|
@ -25,10 +25,12 @@ const TextEdit: React.FC<Props> = ({text,onChange}) => {
|
||||
<>
|
||||
{!edit && <span className="cursor-pointer" onClick={()=>setEdit(true)} >{inputValue}</span>}
|
||||
{edit &&
|
||||
<form className="inline" onSubmit={(e)=>{
|
||||
<form className="inline"
|
||||
onSubmit={(e)=>{
|
||||
e.preventDefault()
|
||||
setEdit(false)
|
||||
}} >
|
||||
}}
|
||||
>
|
||||
<input
|
||||
type="text"
|
||||
className="bg-transparent outline-none font-bold"
|
||||
|
@ -1,11 +1,11 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import App from './components/App';
|
||||
import './index.css';
|
||||
import React from "react"
|
||||
import ReactDOM from "react-dom"
|
||||
import App from "./components/App"
|
||||
import "./index.css"
|
||||
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
document.getElementById('root')
|
||||
);
|
||||
document.getElementById("root")
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user