Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20 about page #22

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import SignUpForm from "./pages/auth/SignUpForm";
import SignInForm from "./pages/auth/SignInForm";
import PostCreateForm from "./pages/posts/PostCreateForm";
import PostPage from "./pages/posts/PostPage";
import AboutPage from ".pages/info/AboutPage";
import PostsPage from "./pages/posts/PostsPage";
import { useCurrentUser } from "./contexts/CurrentUserContext";
import PostEditForm from "./pages/posts/PostEditForm";
Expand Down Expand Up @@ -36,6 +37,11 @@ function App() {
<PostsPage message="No results found. Adjust the search keyword." />
)}
/>
<Route
exact
path="/about"
render={() => <AboutPage message="About Page" />}
/>
<Route
exact
path="/feed"
Expand Down
2 changes: 1 addition & 1 deletion src/components/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const NavBar = () => {
fixed="top"
>
<Container>
<NavLink to="/">
<NavLink to="/about">
<Navbar.Brand>
<img src={logo} alt="logo" height="45" className={styles.logo}/>
</Navbar.Brand>
Expand Down
12 changes: 12 additions & 0 deletions src/pages/info/AboutPage.js
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I seem to remember this file looking a little different on your screen. Also, we wont need the message prop in the route tag.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";
import AboutPage from "./AboutPage";

function App() {
return (
<div className="App">
<AboutPage />
</div>
);
}

export default App;