-
Notifications
You must be signed in to change notification settings - Fork 18
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
#91 inline-edit HTML is componentized #144
Conversation
}, | ||
}} | ||
> | ||
<Element |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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
…folder components
conditional rendering added |
- Added SVGs for Copy and Paste buttons - Created individual components to handle SVGs. - Created copy-pasted-button
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