Update React, fix null dates, add default route for missing season ID and move blurred area effect to table only
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -11,30 +11,10 @@ library.add(faArrowCircleLeft, faArrowCircleRight)
|
||||
const App: FunctionComponent = () => (
|
||||
<Router>
|
||||
<Switch>
|
||||
{/*<Route exact path={'/'} component={(props: IMainPageProps) => (<MainPage {...props}/>)} />*/}
|
||||
<Route path={'/season/:id'} component={(props: IMainPageProps) => (<MainPage {...props}/>)} />
|
||||
<Route path={'/season/:id?'} component={(props: IMainPageProps) => (<MainPage {...props}/>)} />
|
||||
<Redirect to={'/season'} />
|
||||
</Switch>
|
||||
</Router>
|
||||
);
|
||||
|
||||
export default App;
|
||||
|
||||
|
||||
// export default class App extends React.Component {
|
||||
|
||||
// componentDidMount() {
|
||||
// this.setState({loading: false, mock: this.mockService.getStatsWithoutPromise()});
|
||||
// this.apiService.getStats()
|
||||
// .then(data => this.setState({
|
||||
// isLoaded: true,
|
||||
// users: data
|
||||
// }))
|
||||
// .catch(error => {
|
||||
// error.response.json()
|
||||
// .then((err: any) => this.setState({
|
||||
// isLoaded: true,
|
||||
// error: err.error
|
||||
// }))
|
||||
// });
|
||||
// }
|
||||
export default App;
|
||||
Reference in New Issue
Block a user