mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-24 05:56:14 -04:00
Help
This commit is contained in:
parent
af65f22c70
commit
d31f8ef0b4
12 changed files with 124 additions and 115 deletions
|
@ -53,7 +53,7 @@ function App() {
|
|||
>
|
||||
<div id={"levels"}>
|
||||
{levels.map((level, li) => {
|
||||
const { name,credit, bricks, size, svg, color } = level;
|
||||
const { name, credit, bricks, size, svg, color } = level;
|
||||
|
||||
const brickButtons = [];
|
||||
for (let x = 0; x < size; x++) {
|
||||
|
@ -97,23 +97,19 @@ function App() {
|
|||
return (
|
||||
<div key={li}>
|
||||
<input
|
||||
className={"name"}
|
||||
className={"name"}
|
||||
type="text"
|
||||
value={name}
|
||||
onChange={(e) => updateLevel(li, { name: e.target.value })}
|
||||
/>
|
||||
<input
|
||||
className={"credit"}
|
||||
className={"credit"}
|
||||
type="text"
|
||||
value={credit||''}
|
||||
value={credit || ""}
|
||||
onChange={(e) => updateLevel(li, { credit: e.target.value })}
|
||||
/>
|
||||
|
||||
|
||||
|
||||
<div
|
||||
className={"buttons"}
|
||||
>
|
||||
<div className={"buttons"}>
|
||||
<button onClick={() => deleteLevel(li)}>Delete</button>
|
||||
<button onClick={() => updateLevel(li, resizeLevel(level, -1))}>
|
||||
-
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue