Skip to content

Commit

Permalink
Use icon TYPES in prop type. Provide guidance on order of actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed May 1, 2018
1 parent 08f42b6 commit 63bcbdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src-docs/src/views/empty_prompt/empty_prompt_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ export const EmptyPromptExample = {
You can remove parts of the prompt to simplify it, if you wish.
</p>
<p>
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.
</p>
</Fragment>
),
Expand Down
4 changes: 2 additions & 2 deletions src/components/empty_prompt/empty_prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -114,7 +114,7 @@ export const EuiEmptyPrompt = ({
};

EuiEmptyPrompt.propTypes = {
iconType: PropTypes.string,
iconType: PropTypes.oneOf(TYPES),

/**
* Pass `null` to use original icon color
Expand Down

0 comments on commit 63bcbdf

Please sign in to comment.