small cleanup
This commit is contained in:
parent
c6beeed8e2
commit
6a893308f2
@ -12,9 +12,7 @@ const AddItem: React.FC<Props> = ({side,onChange}) => {
|
|||||||
const [selected,setSelected] = useState<Item>(Item.DEFAULT_PISTOL)
|
const [selected,setSelected] = useState<Item>(Item.DEFAULT_PISTOL)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div>
|
||||||
className=""
|
|
||||||
>
|
|
||||||
<select
|
<select
|
||||||
onChange={(e)=>setSelected(Item[e.target.value as keyof typeof Item])}
|
onChange={(e)=>setSelected(Item[e.target.value as keyof typeof Item])}
|
||||||
>
|
>
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import React from "react"
|
import React from "react"
|
||||||
import ItemToDisplay from "../ItemToDisplay"
|
import ItemToDisplay from "../ItemToDisplay"
|
||||||
import Card from "../types/Card"
|
import Card from "../types/Card"
|
||||||
import Item from "../types/Item"
|
|
||||||
import Side from "../types/Side"
|
import Side from "../types/Side"
|
||||||
import AddItem from "./AddItem"
|
import AddItem from "./AddItem"
|
||||||
import SwitchButton from "./SwitchButton"
|
import SwitchButton from "./SwitchButton"
|
||||||
|
Loading…
Reference in New Issue
Block a user