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