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

ref(select): Choices -> options monitorForm #28755

Merged
merged 2 commits into from
Sep 23, 2021

Conversation

davidenwang
Copy link
Contributor

Changes from legacy react-select choices to options here:

image

@davidenwang davidenwang requested review from a team September 22, 2021 00:29
Copy link
Member

@priscilawebdev priscilawebdev left a 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 = [
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahhh yes missed this

@davidenwang
Copy link
Contributor Author

/gcbrun

@davidenwang davidenwang merged commit a65413c into master Sep 23, 2021
@davidenwang davidenwang deleted the davidenwang/monitors-form-choices-to-options branch September 23, 2021 21:41
vuluongj20 pushed a commit that referenced this pull request Sep 30, 2021
* choices to options

* add type for intervals
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants