structures
This commit is contained in:
parent
70baab648c
commit
f86295535e
@ -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}`;
|
||||
|
16
client/src/Structures/Popup.js
Normal file
16
client/src/Structures/Popup.js
Normal 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;
|
Loading…
Reference in New Issue
Block a user