From ec7ed3aeb835762f4f3363f420b302911c59d773 Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Mon, 26 Jul 2021 00:19:32 +0000 Subject: [PATCH] Implement basic modal styling --- src/App.js | 8 +++++--- src/style.css | 8 ++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/App.js b/src/App.js index 71b22ad..e73990f 100644 --- a/src/App.js +++ b/src/App.js @@ -4,7 +4,7 @@ import './style.css'; // The new new import React, {useState,useEffect,useRef,useReducer} from 'react'; import Modal from 'react-modal' -import {XSquareFill} from 'react-bootstrap-icons' +import {XSquare, XSquareFill} from 'react-bootstrap-icons' import { HashRouter, @@ -364,8 +364,10 @@ function ListRow(p) { } function PopupWindow(p) { + //Modal content goes here return {p.setModalOpen(false)}} shouldFocusAfterRender={true} shouldCloseOnOverlayClick={true} shouldCloseOnEsc={true}> - This is a test modal. +

{p.title}{p.setModalOpen(false)}} className="modalCloseButton"/>

+ {p.children}
} @@ -661,7 +663,7 @@ function App() { - + Modal content goes here diff --git a/src/style.css b/src/style.css index 50ffd32..2dfc641 100644 --- a/src/style.css +++ b/src/style.css @@ -884,4 +884,12 @@ button{ .webicon:hover{ color:rgba(200,0,0,1); cursor:pointer; +} +.modalCloseButton{ + float:right; + color:#151f25; +} +.modalCloseButton:hover{ + color:#454f85; + cursor:pointer; } \ No newline at end of file