Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use empty state component
Browse files Browse the repository at this point in the history
Brittany Archibeque authored and Brittany Archibeque committed Dec 12, 2023
1 parent 07c3034 commit 229ddc5
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions aries-site/src/examples/cardPreviews/emptystate.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
import React from 'react';
import { Box, Button, Heading, Paragraph } from 'grommet';
import { EmptyState } from 'aries-core';
import { Button } from 'grommet';
import { CircleInformation } from 'grommet-icons';

export const EmptyStatePreview = () => (
<Box gap="small" align="center" flex={false}>
<CircleInformation />
<Box align="center" gap="xsmall">
<Heading margin="none" size='small' level={4}>
No items exist
</Heading>
<Paragraph margin="none" textAlign="center">
Error message will be displayed here.
</Paragraph>
</Box>
<Button label="Action item" primary />
</Box>
);
export const EmptyStatePreview = () => {
return (
<EmptyState
title="Empty state title"
description="Empty state message will be displayed here."
icon={<CircleInformation />}
actions={<Button tabIndex={-1} label="action item" primary />}
level={3}
/>
);
};

0 comments on commit 229ddc5

Please sign in to comment.