Moved join screen to a modal

This commit is contained in:
Mitchell McCaffrey
2020-04-13 18:29:46 +10:00
parent bcf9f94c24
commit 5c0272fc2d
4 changed files with 27 additions and 24 deletions

View File

@@ -2,7 +2,7 @@ import React from "react";
import Modal from "react-modal";
import { useThemeUI, Close } from "theme-ui";
function StyledModal({ isOpen, onRequestClose, children }) {
function StyledModal({ isOpen, onRequestClose, children, ...props }) {
const { theme } = useThemeUI();
return (
@@ -22,6 +22,7 @@ function StyledModal({ isOpen, onRequestClose, children }) {
maxHeight: "100%",
},
}}
{...props}
>
{children}
<Close