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

feat(dashboard): initial scaffolding for input widget #566

Merged
merged 2 commits into from
Feb 13, 2023

Conversation

NorbertNader
Copy link
Contributor

Overview

initial scaffolding for input widget

Legal

This project is available under the Apache 2.0 License.

@@ -0,0 +1,5 @@
import React from 'react';

const InputComponent: React.FC = () => <div>input</div>;
Copy link
Contributor

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

Copy link
Contributor Author

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') {
Copy link
Contributor Author

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.

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.

None yet

2 participants