-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Migration: New datasource #23221
Migration: New datasource #23221
Conversation
href={`${learnMoreLink.url}?utm_source=grafana_add_ds`} | ||
target="_blank" | ||
rel="noopener" | ||
onClick={onLearnMoreClick} | ||
icon={<Icon name="external-link" />} |
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.
Any thoughts about this usage?
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.
can't we just set icon to "external-link"
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.
It originally supported setting it as fa fa-external-link
I think. Should maybe remove the fa
then, and do some reasonable migration.
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'll use the fa string for now, and we'll see about that later.
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.
Looks ok, some questions. Not sure why we can't pass icon as a string instead , and instead use React element
<input | ||
ref={ref} | ||
export const FilterInput = forwardRef<HTMLInputElement, Props>((props, ref) => | ||
props.useNewForms ? ( |
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.
Not sure we need this, we can always use new form styles (i think) as this is only used in the top above lists and not together with other input elements
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.
Good point. I think the pages using it are fairly simple to migrate too, so we should probably be fine.
href={`${learnMoreLink.url}?utm_source=grafana_add_ds`} | ||
target="_blank" | ||
rel="noopener" | ||
onClick={onLearnMoreClick} | ||
icon={<Icon name="external-link" />} |
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.
can't we just set icon to "external-link"
#22862
<Icon/>
for theicon
props on Buttons. Any thoughts about this?