1
0
mirror of https://github.com/kremalicious/umami.git synced 2024-12-22 01:03:39 +01:00

feature(components): prop-type Loading

This commit is contained in:
Alexander Klein 2021-02-16 13:11:49 +01:00
parent d5be21649a
commit 4ff2bd4fa2

View File

@ -1,8 +1,9 @@
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './Loading.module.css';
export default function Loading({ className }) {
function Loading({ className }) {
return (
<div className={classNames(styles.loading, className)}>
<div />
@ -11,3 +12,9 @@ export default function Loading({ className }) {
</div>
);
}
Loading.propTypes = {
className: PropTypes.string,
};
export default Loading;