From 52eff39c77d0a408a86ae8439d8288cea8b8a95a Mon Sep 17 00:00:00 2001 From: John Darragh Date: Tue, 8 Oct 2024 15:57:28 -0700 Subject: [PATCH] Remove dead code realted to survey popup (#2238) --- client/src/App.js | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/client/src/App.js b/client/src/App.js index e79f483f..e01367ad 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -1,9 +1,9 @@ -import { CssBaseline, Snackbar } from "@mui/material"; +import { useEffect } from "react"; +import { CssBaseline } from "@mui/material"; import SurveySnackbar from "./components/UI/SurveySnackbar"; import { SiteProvider } from "contexts/siteContext"; import { ToasterProvider } from "contexts/toasterContext"; import { UserProvider } from "contexts/userContext"; -import { useEffect, useState } from "react"; import { HelmetProvider } from "react-helmet-async"; import { BrowserRouter as Router } from "react-router-dom"; import { ThemeProvider } from "theme"; @@ -18,17 +18,12 @@ function App() { analytics.postEvent("visitAppComponent"); }, []); - const [snackbarOpen, setSnackbarOpen] = useState(false); - const [snackbarMessage, setSnackbarMessage] = useState(""); + // const [snackbarOpen, setSnackbarOpen] = useState(false); + // const [snackbarMessage, setSnackbarMessage] = useState(""); - const handleOpenSnackbar = (message) => { - setSnackbarMessage(message); - setSnackbarOpen(true); - }; - - const handleCloseSnackbar = () => { - setSnackbarOpen(false); - }; + // const handleCloseSnackbar = () => { + // setSnackbarOpen(false); + // }; return ( @@ -46,12 +41,7 @@ function App() { - +