fixed bug causing white screen - #186
Conversation
✅ Deploy Preview for wordwizard-texteditor ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@palchhinparihar , i have made the necessary changes! please do check :) |
|
hi, @vishruthmd just add |
There was a problem hiding this comment.
Pull Request Overview
This PR standardizes code formatting across the TextForm and DialogBox components by converting inconsistent indentation to a uniform 4-space indentation pattern. Additionally, it includes two bug fixes and removes "peer": true flags from package-lock.json.
- Reformats TextForm.jsx and DialogBox.jsx with consistent 4-space indentation
- Adds
setActiveOperationprop to DialogBox to properly reset UI state - Fixes grammar check button logic in the "generate-lorem" branch
- Cleans up package-lock.json by removing unnecessary peer flags
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| src/components/TextForm.jsx | Standardized indentation to 4 spaces, fixed grammar check button display logic in generate-lorem branch, and passed setActiveOperation to DialogBox |
| src/components/DialogBox.jsx | Standardized indentation to 4 spaces and added setActiveOperation handling for proper state cleanup |
| package-lock.json | Removed "peer": true flags from multiple package entries |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
sure @palchhinparihar , do you want me to make the changes and open another new pull request? |
|
Nah, just make your commits here! Don't need to make a new PR. |
|
@palchhinparihar , sorry for the delay. Now the buttons in the dialog box have the cursor-pointer. |
📝 Description
This PR fixes the bug causing white screen when "Clear text" button was clicked
Fixes #179
🔍 Type of Change
🧪 How Has This Been Tested?
Steps:
📸 Screenshots / Demo (if applicable)
🧠 Checklist
💬 Additional Notes
this now also works when the trash icon is clicked to clear the screen