Skip to content

Commit

Permalink
Merge pull request #23 from infoshareacademy/michPas
Browse files Browse the repository at this point in the history
Mich pas
  • Loading branch information
KubaJedrak authored Sep 6, 2020
2 parents 900638a + 93c1b62 commit 9976945
Show file tree
Hide file tree
Showing 33 changed files with 763 additions and 1,084 deletions.
31 changes: 31 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@
"react-circular-input": "^0.2.1",
"react-dom": "^16.13.1",
"react-icons": "^3.10.0",
"react-redux": "^7.2.1",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.1",
"react-share": "^4.2.1",
"react-spring": "^8.0.27",
"react-vis": "^1.11.7",
"recharts": "^1.8.5",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0",
"swiper": "^6.0.4",
"typescript": "^3.9.7",
"yup": "^0.29.1"
Expand Down
3 changes: 3 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@

html{
box-sizing: border-box;
}
p, h1, h2, h3, h4 {
margin: 0;
}
28 changes: 8 additions & 20 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import SignIn from './components/SignIn/SignIn';
import SignUp from './components/SignUp/SignUp';
import PasswordReset from './components/SignIn/PasswordReset';
import About from './components/About';
import Favorite from './components/Challlenges';
import Favorite from './components/Challenges';
import ChallengeDescription from './components/ChallengeDescription';
import UserProfile from './components/UserProfile';
import Diary from './components/diary/Diary';
Expand All @@ -14,7 +14,7 @@ import {makeStyles} from '@material-ui/core/styles';

import { BrowserRouter, Switch, Route } from 'react-router-dom'
import './App.css';
import ChallengesList from './components/ChallengesList';
import Challenges from './components/Challenges';

import firebase from "firebase";
/* import Password from 'antd/lib/input/Password'; */
Expand Down Expand Up @@ -58,21 +58,11 @@ function AppContent() {
<main className={classes.content}>
<div className={classes.toolbar} />
<Switch>
<Route path="/about">
<About />
</Route>
<Route exact path="/challenges">
<ChallengesList />
</Route>
<Route path="/challenges/:id">
<ChallengeDescription />
</Route>
<Route path="/diary">
<Diary />
</Route>
<Route path="/">
<Dashboard />
</Route>
<Route path="/about" component={About} />
<Route exact path="/challenges" component={Challenges} />
<Route path="/challenges/:id" component={ChallengeDescription} />
<Route path="/diary" component={Diary} />
<Route exact path="/" component={Dashboard} />
</Switch>
</main>
</div>
Expand Down Expand Up @@ -119,8 +109,7 @@ class App extends React.Component {
});
}

render() {

render() {
switch(this.state.user) {
case Logged:
return <AppContent />
Expand All @@ -133,7 +122,6 @@ class App extends React.Component {
default:
return <OnBoarding onLogin={this.handleLogin} onRegister={this.handleRegister} />
}

}
}

Expand Down
152 changes: 0 additions & 152 deletions src/components/ChallengeCard.jsx

This file was deleted.

Loading

0 comments on commit 9976945

Please sign in to comment.