Skip to content

Commit

Permalink
LoadingCard // add leaf-beat.svg loading icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrico committed Jul 29, 2024
1 parent 8c8456a commit d1d2b17
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
21 changes: 21 additions & 0 deletions resources/images/leaf-beat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 18 additions & 2 deletions resources/ts/components/LoadingCard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
/**
* WordPress dependencies
*/
import { Card, CardBody, Spinner } from '@wordpress/components';
import {
Card,
CardBody,
__experimentalHStack as HStack,
__experimentalText as Text,
} from '@wordpress/components';
import { __ } from '@wordpress/i18n';

/**
* Internal dependencies
*/
import { ReactComponent as LeafBeat } from '../../../images/leaf-beat.svg';

export const LoadingCard: FunctionComponent = () => {
return (
<Card>
<CardBody>
<Spinner />
<HStack justify="start" spacing="4">
<LeafBeat />
<Text size="large">
{ __( 'Loading…', 'inpsyde-google-tag-manager' ) }
</Text>
</HStack>
</CardBody>
</Card>
);
Expand Down

0 comments on commit d1d2b17

Please sign in to comment.