diff --git a/webapp/src/components/DropdownList.jsx b/webapp/src/components/DropdownList.jsx new file mode 100644 index 0000000..42824b7 --- /dev/null +++ b/webapp/src/components/DropdownList.jsx @@ -0,0 +1,15 @@ +import React from 'react'; + +export default function DropdownList({ selected, onSelect, optionsList }) { + const handleSelect = (event) => { + onSelect(event.target.value) + } + + return ( +
+ ) +} \ No newline at end of file diff --git a/webapp/src/components/Game/GameMessage.css b/webapp/src/components/Game/GameMessage.css deleted file mode 100644 index b8871b8..0000000 --- a/webapp/src/components/Game/GameMessage.css +++ /dev/null @@ -1,6 +0,0 @@ -.game-message { - border-radius: 3px; - border-color: lightgray; - background-color:violet; - width: 70%; -} \ No newline at end of file diff --git a/webapp/src/components/Game/GameMessage.jsx b/webapp/src/components/Game/GameMessage.jsx deleted file mode 100644 index 328b2ba..0000000 --- a/webapp/src/components/Game/GameMessage.jsx +++ /dev/null @@ -1,15 +0,0 @@ -import './GameMessage.css' -import React from 'react' - -// import { AppContext } from '../../context/app' - -export default function GameMessage() { - - // const [ctx] = React.useContext(AppContext) - - return ( -{game.message}-