Skip to content

Commit

Permalink
cl
Browse files Browse the repository at this point in the history
  • Loading branch information
cchaos committed Jun 13, 2022
1 parent 53cf457 commit 798f09f
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src-docs/src/views/selectable/selectable_messages.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
import React, { useState, Fragment } from 'react';

import { EuiSelectable } from '../../../../src/components/selectable';
import { EuiSwitch } from '../../../../src/components/form/switch';
import { EuiSpacer } from '../../../../src/components/spacer';
import {
EuiSelectable,
EuiSelectableMessage,
EuiText,
EuiSwitch,
EuiSpacer,
EuiIcon,
} from '../../../../src';

export default () => {
const [useCustomMessage, setUseCustomMessage] = useState(false);
const [isLoading, setIsLoading] = useState(false);
const [hasError, setHasError] = useState(false);

const emptyMessage = 'You have no spice';
const emptyMessage = (
<EuiSelectableMessage>
<EuiIcon type={'partial'} />
<EuiText>
<p>Cannot fetch results.</p>
</EuiText>
</EuiSelectableMessage>
);
const loadingMessage = "Hey, I'm loading here!";
const errorMessage = 'Error!';

Expand Down

0 comments on commit 798f09f

Please sign in to comment.