-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ref(select): Choices -> options monitorForm #28755
ref(select): Choices -> options monitorForm #28755
Conversation
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.
left 1 suggestion but it looks good to me
const MONITOR_TYPES: Choices = [['cron_job', 'Cron Job']]; | ||
const MONITOR_TYPES: SelectValue<MonitorTypes>[] = [ | ||
{value: 'cron_job', label: 'Cron Job'}, | ||
]; | ||
|
||
const INTERVALS = [ |
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.
should we also define the type here?
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.
ahhh yes missed this
d8e8173
to
2df9c13
Compare
/gcbrun |
* choices to options * add type for intervals
Changes from legacy react-select
choices
tooptions
here: