Implemented Coupon Management with Coupon Creation and Edit Feature#894
Merged
manikumarreddyu merged 1 commit intomanikumarreddyu:mainfrom Nov 9, 2024
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Contributor
|
Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊 |
Contributor
|
🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
This PR introduces a new feature for creating and editing coupon codes. It includes a form that allows users to input details for new coupons or edit existing ones. The form fields include coupon code, description, value, minimum order amount, maximum discount, start and end dates, and usage limit. The feature is designed to be flexible and user-friendly, providing easy creation and management of coupon codes.
Changes:
Coupon Form Component:
CouponFormcomponent responsible for displaying the coupon creation/edit form.code(text input)description(text input)value(text input)minOrderAmount(text input)maxDiscount(text input)startDate(date input)endDate(date input)usageLimit(text input)Styling:
max-heightof 80vh and becomes scrollable if the content overflows.State Management:
formData) and updates them usingonFormChangefunction passed down as a prop.Buttons and Actions:
onSubmitpassing the updated coupon data.Responsive Design:
Validation:
requiredto ensure the user cannot submit the form without providing necessary data.How It Works:
onSubmitfunction will be called, passing the form data back to the parent component (which handles coupon creation or editing logic).Screenshots (if applicable):
coupon.mp4
Related Issues: