diff --git a/client/src/Structures/Dropdown.js b/client/src/Structures/Dropdown.js index a5fbee4..2f64c61 100644 --- a/client/src/Structures/Dropdown.js +++ b/client/src/Structures/Dropdown.js @@ -22,7 +22,7 @@ const Dropdown = ({items, name, onUpdate}) => { return (
- {name} + {name}
{items.map(item => { const id = `${name}:${item.name}`; diff --git a/client/src/Structures/Popup.js b/client/src/Structures/Popup.js new file mode 100644 index 0000000..d2c9489 --- /dev/null +++ b/client/src/Structures/Popup.js @@ -0,0 +1,16 @@ +import React from "react"; +import '../css/Structures.css'; + +const Popup = ({toggle, children}) => { + + if (!toggle) return null; + + return ( +
+ {children} +
+ ); + +}; + +export default Popup; \ No newline at end of file