-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} | ||
/> | ||
); | ||
}; |