-
Notifications
You must be signed in to change notification settings - Fork 317
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
updateFaq functionality and Integrate it with Backend #983
updateFaq functionality and Integrate it with Backend #983
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comment, please incorporate it
@@ -20,19 +20,27 @@ export function ManageFaq() { | |||
const [toastMessage, setToastMessage] = useState(""); | |||
const [severity, setSeverity] = useState("success"); | |||
const [reload, setReload] = useState(true); | |||
const [editedFaq, setEditedFaq] = useState(null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need to maintain the state for each of the fields? can we maintain the state of the faqObject? it would be much cleaner that way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes done, please review
@Kajol-Kumari is it okay or we need to do same with toast ? , I've made some adjustments. Now, when users click the 'edit' button edit operation can be perform :
PLEASE SELECT ONE |
@shivamgaur99 opening the popup with form kind of look for editing looks more standard, so please stick with the same |
Closes: #974
Feature Added: Update FAQ Functionality
added open dialogue for edit faq
add validations
check responsiveness in multiple devices
Types of changes
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that applyScreenshots