structures

This commit is contained in:
Erik 2022-03-24 21:38:23 +02:00
parent 70baab648c
commit f86295535e
No known key found for this signature in database
GPG Key ID: FEFF4B220DDF5589
2 changed files with 17 additions and 1 deletions

View File

@ -22,7 +22,7 @@ const Dropdown = ({items, name, onUpdate}) => {
return (
<div className='dropdown'>
{name}
<span>{name}</span>
<div className='dropdown-list'>
{items.map(item => {
const id = `${name}:${item.name}`;

View File

@ -0,0 +1,16 @@
import React from "react";
import '../css/Structures.css';
const Popup = ({toggle, children}) => {
if (!toggle) return null;
return (
<div className='popup'>
{children}
</div>
);
};
export default Popup;