Archived
saving navbar progress
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import React from "react"
|
||||
import { Route } from "react-router-dom"
|
||||
import { GraphicsBayTrackerHome } from "./home/GraphicsBayTrackerHome"
|
||||
|
||||
export const ApplicationViews = () => {
|
||||
return (
|
||||
<>
|
||||
<Route path="/GraphicsBayTrackerHome">
|
||||
<GraphicsBayTrackerHome />
|
||||
</Route>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ export const Login = () => {
|
||||
const history = useHistory()
|
||||
|
||||
const existingUserCheck = () => {
|
||||
return fetch(`http://localhost:8088/customers?email=${email}`)
|
||||
return fetch(`http://localhost:8088/users?email=${email}`)
|
||||
.then(res => res.json())
|
||||
.then(user => user.length ? user[0] : false)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
export const GraphicsBayTrackerHome =()=>{
|
||||
return <div></div>
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
export const NewsStories = () => {
|
||||
return <div></div>
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
import React, { useEffect, useState } from "react"
|
||||
import { Link, useHistory } from "react-router-dom"
|
||||
import "./NavBar.css"
|
||||
|
||||
|
||||
|
||||
export const NavBar = () => {
|
||||
const history = useHistory()
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<div className="container">
|
||||
<nav className="navbar navbar-expand-sm navbar-light bg-light fixed-top onTop">
|
||||
<button className="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span className="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div id="navbarNavDropdown" className="navbar-collapse collapse">
|
||||
<ul className="navbar-nav mr-auto">
|
||||
<li className="nav-item active">
|
||||
<Link className="nav-link" to="/">Pricing Data<span className="sr-only"></span></Link>
|
||||
</li>
|
||||
<li className="nav-item">
|
||||
<Link className="nav-link" to="/locations">My Profile and Tracked Cards</Link>
|
||||
</li>
|
||||
</ul>
|
||||
<ul className="navbar-nav">
|
||||
<li className="nav-item dropdown">
|
||||
{
|
||||
// isAuthenticated()
|
||||
|
||||
}
|
||||
</li>
|
||||
<li className="nav-item">
|
||||
{
|
||||
// !isAuthenticated()
|
||||
// <Link className="nav-link" to="/register">Register</Link>
|
||||
|
||||
}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user