From f28071eac8426a38e57f64f4a9efaee759f1edde Mon Sep 17 00:00:00 2001 From: leo ouyang Date: Tue, 5 Apr 2022 19:16:02 -0400 Subject: [PATCH] removed lightswitch --- src/App.js | 1 - src/components/LightSwitch.js | 14 -------------- 2 files changed, 15 deletions(-) delete mode 100644 src/components/LightSwitch.js diff --git a/src/App.js b/src/App.js index d16f3cb..244cfad 100644 --- a/src/App.js +++ b/src/App.js @@ -3,7 +3,6 @@ import LangFilters from "./components/LangFilters"; import SectDropdown from "./components/SectDropdown"; import SearchBar from "./components/SearchBar"; import SearchResult from "./components/SearchResult"; -import LightSwitch from "./components/LightSwitch"; import axios from "axios"; import Fuse from "fuse.js"; import { ThemeContext, themes, swapMode } from './darkMode'; diff --git a/src/components/LightSwitch.js b/src/components/LightSwitch.js deleted file mode 100644 index 3e5fb42..0000000 --- a/src/components/LightSwitch.js +++ /dev/null @@ -1,14 +0,0 @@ -import React, { useState, useEffect } from "react"; - -function LightSwitch(App){ - const [lightMode, setLightMode] = useState(false); - return ( - setLightMode(!lightMode)} style={{width: "100px", height: "100px",display: "block", - marginLeft: "auto", - marginRight: "auto", - }}/> - ) -} - -export default LightSwitch; \ No newline at end of file