refactor: ui

This commit is contained in:
cha0s 2022-04-07 10:16:34 -05:00
parent ee76ad1498
commit 508bd7f9d5

View File

@ -281,31 +281,26 @@ function TilesPage({
<div className={styles.brushes}>
<label>
<span>Tileset mode</span>
<select
defaultValue={tilesetMode}
onChange={(event) => {
setTilesetMode(parseInt(event.target.value, 10));
}}
>
<option value={0}>Pan</option>
<option value={1}>Draw</option>
<option value={2}>Fill</option>
</select>
</label>
</div>
{2 === tilesetMode && (
<div className={styles.fillType}>
<label>
<span>Fill type</span>
<div>
<div className={styles.brushSelects}>
<select
defaultValue={tilesetMode}
onChange={(event) => {
setTilesetMode(parseInt(event.target.value, 10));
}}
>
<option value={0}>Pan</option>
<option value={1}>Draw</option>
<option value={2}>Fill</option>
</select>
{2 === tilesetMode && (
<select>
<option>Tiling</option>
<option>Random</option>
</select>
</div>
</label>
</div>
)}
)}
</div>
</label>
</div>
<div className={styles.grower} />
<div className={styles.scale}>
<label>