Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

valentin-uskov
Copy link

No description provided.

@@ -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;
Copy link
Owner

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`} />
Copy link
Owner

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 ? (
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

при таком решении все еще можно понажимать на +/-/х на продуктах в корзине

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants