-
Notifications
You must be signed in to change notification settings - Fork 21
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
Refactor the EditableText component to reduce code duplication. #194
Comments
Thank you for this suggestion. Please note that a similar refactoring has recently been done to reuse code between HyperGlosae/frontend/src/components/EditableText.js Lines 23 to 30 in 8db04da
|
HyperGlosae/frontend/src/components/EditableText.jsx Lines 56 to 61 in 092ff8d
HyperGlosae/frontend/src/components/EditableText.jsx Lines 71 to 76 in 092ff8d
|
In editable text, the functions
handleImageUrl
andhandleBlur
are almost identical, with the main difference being the source of the text to update. These can be combined into a single function allowing it's users to update the text for a passage margin, regardless of the input method.The text was updated successfully, but these errors were encountered: