amupedia2021 / amupedia-web

Source code of the website.
https://www.amupedia.site/
MIT License
163 stars 177 forks source link

Added React-Toastify #530

Closed Shahil093 closed 1 year ago

Shahil093 commented 1 year ago

504

Added Toast Notifications Feature Description Implemented the toast notifications feature using the react-toastify library. Toast notifications are displayed for various events in the application, including form validation errors, success messages, and error messages.

Changes Made Imported the necessary components from the react-toastify library. Added toast notifications for form validation errors in the login form. Added toast notifications for login success and failure messages. Utilized the ToastContainer component to render the toast notifications.

Description

Please provide a brief description of the changes introduced in this pull request. Explain the problem you are solving or the feature you are adding.

Pull Request Checklist

Please make sure that your PR meets the following requirements:

Checklist

Please check all applicable boxes and provide any additional information if needed.

Screenshots - If Any (Optional)

Additional Notes(Optional)

Please provide any additional information or context that may be helpful for reviewing the pull request.

Related Issues

Please list any related issues or pull requests that are associated with this pull request.

Reviewers

Please tag the relevant team members or reviewers who should review this pull request.

vercel[bot] commented 1 year ago

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

Name Status Preview Comments Updated (UTC)
project-amupedia ❌ Failed (Inspect) Jul 16, 2023 11:48am
github-actions[bot] commented 1 year ago

Thank you, @Shahil093, for creating this pull request and contributing to GitHub-ReadMe! 💗

Our review team will thoroughly review the pull request and will reach out to you soon! 😇 Please make sure you have marked all the completed tasks as done. ✅ We appreciate your patience and contribution! 😀

Shahil093 commented 1 year ago

Screenshot (160)

anmode commented 1 year ago

error:


./pages/index.js:105:24
--
17:18:18.163 | Syntax error: Unexpected reserved word 'await'.
17:18:18.163 |  
17:18:18.163 | 103 \|           setLoading(true);
17:18:18.163 | 104 \|           try {
17:18:18.163 | > 105 \|             const res = await axios.post('/api/submitForm', form);
17:18:18.163 | \|                         ^
17:18:18.164 | 106 \|             const data = await res.data;
17:18:18.164 | 107 \|             console.log(data);
17:18:18.165 | 108 \|             dispatch({
17:18:18.165 |  
17:18:18.165 |  
17:18:18.165 | > Build failed because of webpack errors
17:18:18.204 | error Command failed with exit code 1.
17:18:18.205 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
17:18:18.230 | Error: Command "yarn run build" exited with 1