styling: Enforced styling across all files (#55)

This commit is contained in:
Taso authored and GitHub committed 2021-01-12 21:31:03 -05:00
1 parent c9b3174505
commit 54daa42454
165 files changed
+1879 -1725

No files matched your search

+19 -19
View File
@@ -1,28 +1,28 @@
import React, { useEffect } from "react";
import { makeStyles } from "@material-ui/core/styles";
import { Paper } from "@material-ui/core";
import React, { useEffect } from 'react';
import { makeStyles } from '@material-ui/core/styles';
import { Paper } from '@material-ui/core';
const useStyles = makeStyles(() => ({
root: {
zIndex: 10,
background: "#424242",
marginTop: "15px",
width: "90%",
display: "flex",
flexFlow: "column nowrap",
position: "absolute",
top: "80px",
background: '#424242',
marginTop: '15px',
width: '90%',
display: 'flex',
flexFlow: 'column nowrap',
position: 'absolute',
top: '80px',
},
displayBlock: {
/*Sets modal to center*/
display: "flex",
flexFlow: "column nowrap",
justifyContent: "center",
alignItems: "center",
position: "relative",
display: 'flex',
flexFlow: 'column nowrap',
justifyContent: 'center',
alignItems: 'center',
position: 'relative',
},
displayNone: {
display: "none",
display: 'none',
},
}));
@@ -31,15 +31,15 @@ export const Modal = ({ children, visible, handleClose }) => {
// when the user presses escape we should close the modal
const _handleEscape = (e) => {
const isEscapeKey = e.key === "Escape" || e.key === "Esc";
const isEscapeKey = e.key === 'Escape' || e.key === 'Esc';
if (isEscapeKey) {
e.preventDefault();
handleClose();
}
};
useEffect(() => {
window.addEventListener("keydown", _handleEscape, true);
return () => window.removeEventListener("keydown", _handleEscape);
window.addEventListener('keydown', _handleEscape, true);
return () => window.removeEventListener('keydown', _handleEscape);
});
const showHideClassName = visible