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

HT-7: redirect to restaurant & submit order & currencies & review animation #82

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

Conversation

vskosp
Copy link

@vskosp vskosp commented Dec 11, 2020

No description provided.

<Route path="/restaurants" component={RestaurantsPage} />
<Route path="/error" component={() => <h1>Error Page</h1>} />
<Route path="/" component={() => '404 - not found'} />
<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 с рута лучше ставить самым первым, так мы сразу понимаем, что происходит при первом заходе на /

return `${convertedValue} ${sign}`;
};

export const withCurrency = (WrappedComponent) => (props) => {
Copy link
Owner

Choose a reason for hiding this comment

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

Хорошее решение по контексту валюты.

@koretskiyav
Copy link
Owner

Хорошая работа и хорошие (часто нестандартные) решения.

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