-
Notifications
You must be signed in to change notification settings - Fork 60
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
feat(dashboard): initial scaffolding for input widget #566
Conversation
49a90aa
to
2a5d4c7
Compare
2a5d4c7
to
d830067
Compare
@@ -0,0 +1,5 @@ | |||
import React from 'react'; | |||
|
|||
const InputComponent: React.FC = () => <div>input</div>; |
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.
Something to note / not required, you could copy and paste the text icon and just change the T to an I
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 like that idea! Let me run it by UX. Thanks.
@@ -30,6 +31,8 @@ export const widgetCreator = | |||
return appKitWidgetCreator(componentTag as AppKitComponentTag, preset); | |||
} else if (componentTag === 'text') { | |||
return textWidgetCreator(componentTag, preset); | |||
} else if (componentTag === 'input') { |
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'm worried this part is not scalable. Noticed we have conditions for text widget
in multiple places and I just followed this pattern for now. I want to tackle this at some point.
Overview
initial scaffolding for input widget
Legal
This project is available under the Apache 2.0 License.