Skip to content

Commit

Permalink
add css for basket page
Browse files Browse the repository at this point in the history
  • Loading branch information
vskosp committed Dec 11, 2020
1 parent c9ac2cd commit 7f5b0a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/basket-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { connect } from 'react-redux';
import { Route, Switch } from 'react-router-dom';
import { createStructuredSelector } from 'reselect';

import styles from './basket-page.module.css';

import Basket from '../components/basket';
import { orderErrorSelector } from '../redux/selectors';

Expand All @@ -15,10 +17,10 @@ const BasketPage = ({ match, orderError }) => {
<Basket canCheckout />
</Route>
<Route path={`${path}/error`}>
<h2 style={{textAlign: 'center', marginTop: 100}}>{orderError}</h2>
<h2 className={styles.message}>{orderError}</h2>
</Route>
<Route path={`${path}/success`}>
<h2 style={{textAlign: 'center', marginTop: 100}}>Thanks for your order!</h2>
<h2 className={styles.message}>Thanks for your order!</h2>
</Route>
</Switch>
)
Expand Down
4 changes: 4 additions & 0 deletions src/pages/basket-page.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.message {
margin-top: 100px;
text-align: center;
}

0 comments on commit 7f5b0a7

Please sign in to comment.