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

Notificação #7

Merged
merged 2 commits into from
Aug 28, 2023
Merged

Notificação #7

merged 2 commits into from
Aug 28, 2023

Conversation

ecsistem
Copy link
Owner

@ecsistem ecsistem commented Aug 28, 2023

Ajuste de notificação

Summary by CodeRabbit

Release Notes:

  • Bug Fix: Removed unnecessary console.log statements from various components to improve code cleanliness and remove unnecessary logging.
  • New Feature: Added toast notifications using the 'react-toastify' library to display success messages when items are added to the cart.
  • Refactor: Replaced fixed decimal formatting with a function call to 'formatarPreco' for calculated values in the cart.
  • Style: Wrapped cart item description cards in 'Link' components for navigation to details page.
  • Chore: Added 'ToastContainer' component from 'react-toastify' library for displaying toast notifications.

@coderabbitai
Copy link

coderabbitai bot commented Aug 28, 2023

Walkthrough

The code changes include various improvements and optimizations across multiple components. Console.log statements have been removed, toast notifications have been added for success messages, unnecessary code has been cleaned up, and import statements have been updated. These changes enhance code cleanliness, remove debugging statements, and improve user experience with toast notifications.

Changes

File Summary
src/components/Badge/index.jsx Removed a console.log statement from the Badge component.
src/components/Buttons/CartButton.jsx
src/components/Buttons/CartButtonProductPage.jsx
Added an import statement for toast from 'react-toastify'. Removed console.log statements. Added toast notifications for success messages when items are added to the cart.
src/components/CartContainer/index.jsx Removed console.log statements and commented-out code related to updating cart items and calculating total value in the CartContainer component.
src/components/CartItems/index.jsx Added import statements for toast, formatarPreco, and Link. Added toast notifications for adding, removing, and removing all items from the cart. Replaced fixed decimal formatting with formatarPreco. Wrapped cart item description card in a Link component.
src/components/ContainerList/ContainerList.jsx Removed console.log statements used for debugging.
src/components/Header/index.jsx Removed a console.log statement from the Header component.
src/components/LowerBanner/index.jsx Removed console.log statements from the LowerBanner component.
src/components/SearchComponent/index.jsx Removed a console.log statement from the handleSearchSubmit function in the SearchComponent.
src/main.jsx Added an import statement for ToastContainer from 'react-toastify' and included its CSS file. Added ToastContainer component within the Provider component.
src/pages/Home/index.jsx Added two console.log statements in the Home component.

Poem

🐇 The code was once a mess,

🐇 With logs and clutter, no less.

🐇 But now it's clean and neat,

🐇 Toast notifications, oh so sweet!

🐇 Bugs are squashed, code is refined,

🐇 A rabbit's joy, peace of mind! 🎉


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • Mention @coderabbitai in any review comment for bot assistance. The bot stays silent unless called upon.
  • Note: Review comments are made on code diffs or files, not on the PR overview.

Pause Incremental Reviews

  • Insert @coderabbitai: ignore in the PR description to halt the bot's ongoing reviews. Remove the line to resume.

Pull Request Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://coderabbit.ai

@vercel
Copy link

vercel bot commented Aug 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
ecommece-compass ✅ Ready (Inspect) Visit Preview Aug 28, 2023 6:36pm

@ecsistem ecsistem merged commit cac86fd into developer Aug 28, 2023
4 checks passed
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.

1 participant