From 9b75f52073aeddcd6fc555b1540574b96317c623 Mon Sep 17 00:00:00 2001
From: Shubhangi Choudhary <78342516+shubhangi013@users.noreply.github.com>
Date: Tue, 21 Dec 2021 18:35:55 +0530
Subject: [PATCH] migrated the files to tsx (#4972)
* migrated the files to tsx
* reverted unecessary changes
* reverted unecessary changes to app.css
* fixed the fails
* fixed the fails
---
web/src/js/components/Modal/Modal.jsx | 13 -------------
web/src/js/components/Modal/Modal.tsx | 13 +++++++++++++
.../Modal/{ModalLayout.jsx => ModalLayout.tsx} | 8 ++++++--
web/src/js/filt/filt.js | 4 +++-
4 files changed, 22 insertions(+), 16 deletions(-)
delete mode 100644 web/src/js/components/Modal/Modal.jsx
create mode 100644 web/src/js/components/Modal/Modal.tsx
rename web/src/js/components/Modal/{ModalLayout.jsx => ModalLayout.tsx} (67%)
diff --git a/web/src/js/components/Modal/Modal.jsx b/web/src/js/components/Modal/Modal.jsx
deleted file mode 100644
index 64b61fcce..000000000
--- a/web/src/js/components/Modal/Modal.jsx
+++ /dev/null
@@ -1,13 +0,0 @@
-import * as React from "react"
-import ModalList from './ModalList'
-import { useAppSelector } from "../../ducks";
-
-
-export default function PureModal() {
- const activeModal = useAppSelector(state => state.ui.modal.activeModal)
- const ActiveModal = ModalList.find(m => m.name === activeModal )
-
- return(
- activeModal ?