From d56456e7a2a50ae2a6f3f5ce3fabf1b5079c6d2e Mon Sep 17 00:00:00 2001 From: bytesparallel Date: Mon, 21 Mar 2022 11:15:02 -0500 Subject: [PATCH] Completed home page and nav bar --- src/ApplicationViews.js | 18 +++++++++++++++++- src/home/Home.js | 9 +++++++-- src/images/MyImages.js | 6 ++++++ src/nav/NavBar.js | 10 +++++++--- src/profile/EditProfile.js | 6 ++++++ src/profile/Profile.js | 6 ++++++ src/tags/PhotosByTag.js | 6 ++++++ src/tags/SelectTags.js | 17 +++++++++++++++++ src/tags/TagManager.js | 3 ++- 9 files changed, 74 insertions(+), 7 deletions(-) diff --git a/src/ApplicationViews.js b/src/ApplicationViews.js index 958727f..9273003 100644 --- a/src/ApplicationViews.js +++ b/src/ApplicationViews.js @@ -1,6 +1,10 @@ import React from "react"; import { Home } from "./home/Home"; import { Route } from "react-router-dom"; +import { SelectTags } from "./tags/SelectTags"; +import { PhotosByTag } from "./tags/PhotosByTag"; +import { MyImages } from "./images/MyImages"; +import { Profile } from "./profile/Profile"; export const ApplicationViews = () => { @@ -12,7 +16,19 @@ export const ApplicationViews = () => {
- + + + + + + + + + + + + +
) diff --git a/src/home/Home.js b/src/home/Home.js index 9f3de2d..feaa4da 100644 --- a/src/home/Home.js +++ b/src/home/Home.js @@ -4,7 +4,7 @@ import { postImages, getImages } from "./HomeManager"; export const Home = () => { const homeImages = useState([]) - const history = useHistory + const history = useHistory() const[ businessImages, setbusinessImages] = useState([]) const [image, setImage] = useState({ album_id: 0, @@ -67,7 +67,12 @@ const defaultImageState =

SmugFolio

-
diff --git a/src/images/MyImages.js b/src/images/MyImages.js index e69de29..9d7c14b 100644 --- a/src/images/MyImages.js +++ b/src/images/MyImages.js @@ -0,0 +1,6 @@ +import React, {useState, useEffect} from "react"; +import { useHistory,useParams } from "react-router-dom"; + +export const MyImages = () => { + +} \ No newline at end of file diff --git a/src/nav/NavBar.js b/src/nav/NavBar.js index a1ad8b9..bf24b7e 100644 --- a/src/nav/NavBar.js +++ b/src/nav/NavBar.js @@ -5,15 +5,19 @@ import { Link, useHistory } from "react-router-dom" export const NavBar = () => { const history = useHistory() return ( +