Clear up with minor updates.
This commit is contained in:
parent
a0073a27e8
commit
1dafdce6de
@ -1,4 +1,4 @@
|
|||||||
import React, {useEffect, useState} from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import './overrides.scss';
|
import './overrides.scss';
|
||||||
import "bootstrap/dist/js/bootstrap.bundle.min";
|
import "bootstrap/dist/js/bootstrap.bundle.min";
|
||||||
@ -40,9 +40,8 @@ import Japan from './Japan/Japan';
|
|||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<Router>
|
<Router>
|
||||||
<div className='row '>
|
<div className="row">
|
||||||
<Navigation />
|
<Navigation />
|
||||||
|
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route exact path='/' element={<Home />}></Route>
|
<Route exact path='/' element={<Home />}></Route>
|
||||||
<Route exact path='/pages/software' element={<Software />}></Route>
|
<Route exact path='/pages/software' element={<Software />}></Route>
|
||||||
|
|||||||
@ -1,6 +1,4 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ContentItem from '../../Content/ContentItem';
|
|
||||||
import Sidebar from '../../UI/Sidebar';
|
|
||||||
|
|
||||||
const Linux = () => {
|
const Linux = () => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -9,7 +9,7 @@ let chapter = window.location.pathname.split('/')[3];
|
|||||||
|
|
||||||
const Navigation = () => {
|
const Navigation = () => {
|
||||||
const [theme, setTheme] = useState(
|
const [theme, setTheme] = useState(
|
||||||
localStorage.getItem('theme') || 'light'
|
localStorage.getItem('theme') || 'dark'
|
||||||
);
|
);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user