From 63bcbdf6860bb92b12ce84c636ddff4dfb445ede Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Mon, 30 Apr 2018 14:38:33 -0700 Subject: [PATCH] Use icon TYPES in prop type. Provide guidance on order of actions. --- src-docs/src/views/empty_prompt/empty_prompt_example.js | 3 ++- src/components/empty_prompt/empty_prompt.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src-docs/src/views/empty_prompt/empty_prompt_example.js b/src-docs/src/views/empty_prompt/empty_prompt_example.js index 3e4c639a822..610d94cdd57 100644 --- a/src-docs/src/views/empty_prompt/empty_prompt_example.js +++ b/src-docs/src/views/empty_prompt/empty_prompt_example.js @@ -72,7 +72,8 @@ export const EmptyPromptExample = { You can remove parts of the prompt to simplify it, if you wish.

- You can also provide an array of multiple actions. + You can also provide an array of multiple actions. Be sure to list primary actions first + and secondary actions last.

), diff --git a/src/components/empty_prompt/empty_prompt.js b/src/components/empty_prompt/empty_prompt.js index df4ee08c2c3..c01b3cf9739 100644 --- a/src/components/empty_prompt/empty_prompt.js +++ b/src/components/empty_prompt/empty_prompt.js @@ -5,7 +5,7 @@ import classNames from 'classnames'; import { TITLE_SIZES } from '../title/title'; import { EuiFlexGroup, EuiFlexItem } from '../flex'; import { EuiSpacer } from '../spacer'; -import { EuiIcon, COLORS } from '../icon/icon'; +import { EuiIcon, COLORS, TYPES } from '../icon/icon'; import { EuiText, EuiTextColor } from '../text'; import { EuiTitle } from '../title'; @@ -114,7 +114,7 @@ export const EuiEmptyPrompt = ({ }; EuiEmptyPrompt.propTypes = { - iconType: PropTypes.string, + iconType: PropTypes.oneOf(TYPES), /** * Pass `null` to use original icon color