Closed JosueBrenes closed 2 weeks ago
@JosueBrenes is attempting to deploy a commit to the LFG Labs Team on Vercel.
A member of the Team first needs to authorize it.
[!CAUTION]
Review failed
The pull request is closed.
The changes introduce a new method, handleDeleteQuestion
, in the QuizStep
component of quizStep.tsx
, enabling users to delete quiz questions. This method calls AdminService.deleteQuizQuestion
with the necessary identifiers. A delete icon (FaTrash
) is added next to each question input, allowing users to trigger the delete functionality through a click. The layout is modified to incorporate this icon while preserving the existing component structure. Additionally, a new method for deleting quiz questions is added to the AdminService
, along with a type definition for the request parameters.
File | Change Summary |
---|---|
components/admin/taskSteps/quizStep.tsx | Added handleDeleteQuestion method for deleting questions, integrated clickable delete icon (FaTrash ), and adjusted layout for UI. |
services/authService.ts | Introduced deleteQuizQuestion method for handling quiz question deletions and added it to AdminService . |
types/backTypes.d.ts | Added new type DeleteQuizQuestion with properties id and quiz_id for deletion requests. |
handleCorrectAnswer
function in the same quizStep.tsx
file, indicating a direct connection in terms of functionality related to managing quiz questions and answers.Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
starknet-quest | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 29, 2024 9:04pm |
New Delete Question Button
Changes description
feat: Function is created to delete a question.
feat: Added a trash icon using react-icons/fa. Clicking the icon calls and executes the previously created function to delete the question.
Other information (Current output)
https://github.com/user-attachments/assets/29dd8c1b-94b3-49bd-bdce-8c403afbee22
Summary by CodeRabbit
New Features
UI Enhancements
Type Definitions