From f683a497ebd48ecd31228d4b814b9a404bbf4e29 Mon Sep 17 00:00:00 2001 From: Alex Khomenko Date: Fri, 4 Jun 2021 12:28:27 +0300 Subject: [PATCH] Add missing select options for controls (#35178) --- .../src/components/ConfirmButton/ConfirmButton.story.tsx | 9 +++++++-- .../Forms/RadioButtonGroup/RadioButtonGroup.story.tsx | 5 +++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/packages/grafana-ui/src/components/ConfirmButton/ConfirmButton.story.tsx b/packages/grafana-ui/src/components/ConfirmButton/ConfirmButton.story.tsx index 3613f7cff07..a4eae41f652 100644 --- a/packages/grafana-ui/src/components/ConfirmButton/ConfirmButton.story.tsx +++ b/packages/grafana-ui/src/components/ConfirmButton/ConfirmButton.story.tsx @@ -33,8 +33,13 @@ export default { closeOnConfirm: true, }, argTypes: { - confirmVariant: { control: { type: 'select' } }, - size: { control: { type: 'select' } }, + confirmVariant: { + control: { + type: 'select', + }, + options: ['primary', 'secondary', 'destructive', 'link'], + }, + size: { control: { type: 'select' }, options: ['xs', 'sm', 'md', 'lg'] }, }, } as Meta; diff --git a/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButtonGroup.story.tsx b/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButtonGroup.story.tsx index 65539d427b0..a51fdc6689f 100644 --- a/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButtonGroup.story.tsx +++ b/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButtonGroup.story.tsx @@ -20,9 +20,10 @@ export default { argTypes: { disabledOptions: { name: 'Disabled item', - control: { type: 'select', options: ['', 'graphite', 'prometheus', 'elastic'] }, + control: { type: 'select' }, + options: ['', 'graphite', 'prometheus', 'elastic'], }, - size: { control: { type: 'select' } }, + size: { control: { type: 'select' }, options: ['xs', 'sm', 'md', 'lg'] }, }, };