From 1dafdce6de92f7f0717be9dfeb9bd14c7d6125cf Mon Sep 17 00:00:00 2001 From: PA4KEV Date: Thu, 10 Aug 2023 20:59:42 +0200 Subject: [PATCH] Clear up with minor updates. --- src/App.js | 5 ++--- src/Pages/Linux/Linux.js | 2 -- src/UI/Navigation.js | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/App.js b/src/App.js index 17ae9cc..331d4cc 100644 --- a/src/App.js +++ b/src/App.js @@ -1,4 +1,4 @@ -import React, {useEffect, useState} from 'react'; +import React from 'react'; import './overrides.scss'; import "bootstrap/dist/js/bootstrap.bundle.min"; @@ -40,9 +40,8 @@ import Japan from './Japan/Japan'; function App() { return ( -
+
- }> }> diff --git a/src/Pages/Linux/Linux.js b/src/Pages/Linux/Linux.js index 371a633..381568e 100644 --- a/src/Pages/Linux/Linux.js +++ b/src/Pages/Linux/Linux.js @@ -1,6 +1,4 @@ import React from 'react'; -import ContentItem from '../../Content/ContentItem'; -import Sidebar from '../../UI/Sidebar'; const Linux = () => { return ( diff --git a/src/UI/Navigation.js b/src/UI/Navigation.js index db4e0c5..4523a5b 100644 --- a/src/UI/Navigation.js +++ b/src/UI/Navigation.js @@ -9,7 +9,7 @@ let chapter = window.location.pathname.split('/')[3]; const Navigation = () => { const [theme, setTheme] = useState( - localStorage.getItem('theme') || 'light' + localStorage.getItem('theme') || 'dark' ); useEffect(() => {