⚙️ Added Settings page scaffold
This commit is contained in:
@@ -6,6 +6,7 @@ import Import from "./Import";
|
||||
import { ComicDetail } from "./ComicDetail";
|
||||
import Library from "./Library";
|
||||
import Search from "./Search";
|
||||
import Settings from "./Settings";
|
||||
|
||||
import { Switch, Route } from "react-router";
|
||||
import Navbar from "./Navbar";
|
||||
@@ -33,6 +34,9 @@ class App extends React.Component {
|
||||
path={"/comic/details/:comicObjectId"}
|
||||
component={ComicDetail}
|
||||
/>
|
||||
<Route path="/settings">
|
||||
<Settings />
|
||||
</Route>
|
||||
</Switch>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -202,7 +202,11 @@ const Navbar: React.FunctionComponent = (props) => {
|
||||
</span>
|
||||
) : null}
|
||||
</p>
|
||||
<p className="control">Settings</p>
|
||||
<p className="control">
|
||||
<Link to="/settings" className="navbar-item">
|
||||
Settings
|
||||
</Link>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
15
src/client/components/Settings.tsx
Normal file
15
src/client/components/Settings.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import React, { useState, useEffect, useCallback, ReactElement } from "react";
|
||||
|
||||
interface ISettingsProps {}
|
||||
|
||||
export const Settings = (props: ISettingsProps): ReactElement => {
|
||||
return (
|
||||
<section className="container">
|
||||
<div className="section">
|
||||
<h1 className="title">Settings</h1>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default Settings;
|
||||
Reference in New Issue
Block a user