Skip to content

Comments

refactor: drop imperative DOM logic in AddLinkTdDialog#205

Open
Rohithgvmg wants to merge 1 commit intoeclipse-editdor:masterfrom
Rohithgvmg:refactor/AddLinkTdDialog
Open

refactor: drop imperative DOM logic in AddLinkTdDialog#205
Rohithgvmg wants to merge 1 commit intoeclipse-editdor:masterfrom
Rohithgvmg:refactor/AddLinkTdDialog

Conversation

@Rohithgvmg
Copy link
Contributor

Closes #201

  • Introduced react state object 'formData'
  • template literal strings to toggle the CSS class
  • removed "/" fallback , since empty links are getting passed without mandatory check
  • removed comments made from previous PR 's
  • moved url variable initialization out of try block, since typescript is complaining about url being used before assigning
  • added optional chaining to handle typescript potential null values complaint
  • removed unused functions

Verified locally the changes
-Verified that typing and file uploads correctly sync with the component state.
-Confirmed that "The href field is mandatory" now correctly triggers on empty submissions. #

Signed-off-by: Rohith <rgvmanikanta05@gmail.com>
@netlify
Copy link

netlify bot commented Feb 23, 2026

Deploy Preview for editdor ready!

Name Link
🔨 Latest commit f3ca81d
🔍 Latest deploy log https://app.netlify.com/projects/editdor/deploys/699c2d52c743e800083806b5
😎 Deploy Preview https://deploy-preview-205--editdor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop imperative DOM manipulation in AddLinkTdDialog

1 participant