mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2026-03-10 13:15:05 +00:00
Merge branch 'master' of https://github.com/ClaytonWWilson/CS307-Team24
This commit is contained in:
@@ -22,5 +22,17 @@
|
||||
"build": "react-scripts build",
|
||||
"test": "react-scripts test --env=jsdom",
|
||||
"eject": "react-scripts eject"
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not op_mini all"
|
||||
],
|
||||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import './App.css';
|
||||
import { BrowserRouter as Router } from 'react-router-dom';
|
||||
import Route from 'react-router-dom/Route';
|
||||
|
||||
import NavBar, { Navbar } from './components/layout/NavBar';
|
||||
|
||||
import home from './Home.js';
|
||||
import register from './Register.js';
|
||||
@@ -18,7 +19,9 @@ class App extends Component {
|
||||
render() {
|
||||
return (
|
||||
<Router>
|
||||
|
||||
<div className='container'>
|
||||
<Navbar />
|
||||
</div>
|
||||
|
||||
<div className="app">
|
||||
<Route exact path="/" component={home}/>
|
||||
|
||||
@@ -5,8 +5,6 @@ import './App.css';
|
||||
import logo from './images/twistter-logo.png';
|
||||
import TextField from '@material-ui/core/TextField';
|
||||
|
||||
import axios from 'axios';
|
||||
|
||||
class Login extends Component {
|
||||
render() {
|
||||
return (
|
||||
|
||||
@@ -4,8 +4,6 @@ import './App.css';
|
||||
import logo from './images/twistter-logo.png';
|
||||
import TextField from '@material-ui/core/TextField';
|
||||
|
||||
//import axios from 'axios';
|
||||
|
||||
class Register extends Component {
|
||||
render() {
|
||||
return (
|
||||
|
||||
@@ -10,8 +10,8 @@ export class Navbar extends Component {
|
||||
return (
|
||||
<AppBar>
|
||||
<ToolBar>
|
||||
<Button component={ Link } to='/user'>
|
||||
User
|
||||
<Button component={ Link } to='/'>
|
||||
Home
|
||||
</Button>
|
||||
<Button component={ Link } to='/login'>
|
||||
Login
|
||||
@@ -19,9 +19,7 @@ export class Navbar extends Component {
|
||||
<Button component={ Link } to='/register'>
|
||||
Register
|
||||
</Button>
|
||||
<Button component={ Link } to='/'>
|
||||
Home
|
||||
</Button>
|
||||
|
||||
</ToolBar>
|
||||
</AppBar>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user