-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature hometask 7 #83
base: master
Are you sure you want to change the base?
Feature hometask 7 #83
Conversation
@@ -24,6 +28,8 @@ export const reviewsLoadedSelector = (state, props) => | |||
export const usersLoadingSelector = (state) => state.users.loading; | |||
export const usersLoadedSelector = (state) => state.users.loaded; | |||
|
|||
export const routeSelector = (state) => state.router.location.pathname; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут можно использовать селектор из connected-react-router
path="/success" | ||
component={() => <h1>Thank you for order!</h1>} | ||
/> | ||
<Redirect exact from="/" to={`/restaurants`} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redirect с рута лучше ставить самым первым, так мы сразу понимаем, что происходит при первом заходе на /
</Link> | ||
<BasketRow label="total" content={convertaition(total)} bold /> | ||
{pathname === '/checkout' ? ( | ||
loading ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
при таком решении все еще можно понажимать на +/-/х на продуктах в корзине
No description provided.