Skip to content
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

#91 inline-edit HTML is componentized #144

Conversation

Bomasen
Copy link
Collaborator

@Bomasen Bomasen commented Aug 8, 2024

Componentized the HTML Konva element into a new file named "html-edit.widget.tsx"
Also added a model file for types and interfaces

closes #91

},
}}
>
<Element
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather use conditional rendering here, reasons why:

  • It's clearer that you are using a textarea or input
  • In the future we could have more editable inputs with different signatures.

@@ -0,0 +1,37 @@
import { Html } from 'react-konva-utils';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Place this in a subfolder

src/common/components/inline-edit/components/html-edit.widget.tsx

and add a barrel

@Bomasen
Copy link
Collaborator Author

Bomasen commented Aug 9, 2024

conditional rendering added

@brauliodiez brauliodiez merged commit 5d9de49 into main Aug 10, 2024
1 check passed
@brauliodiez brauliodiez deleted the feature/#91-componentize-inline-edit-to-avoid-complexity-on-HTML branch August 10, 2024 10:20
jsanzdev added a commit that referenced this pull request Aug 20, 2024
- Added SVGs for Copy and Paste buttons
- Created individual components to handle SVGs.
- Created copy-pasted-button
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.

Componentize inlineEdit to avoid complexity on HTML / Input etc
2 participants