mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
feature(components): prop-type Loading
This commit is contained in:
parent
d5be21649a
commit
4ff2bd4fa2
@ -1,8 +1,9 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import styles from './Loading.module.css';
|
import styles from './Loading.module.css';
|
||||||
|
|
||||||
export default function Loading({ className }) {
|
function Loading({ className }) {
|
||||||
return (
|
return (
|
||||||
<div className={classNames(styles.loading, className)}>
|
<div className={classNames(styles.loading, className)}>
|
||||||
<div />
|
<div />
|
||||||
@ -11,3 +12,9 @@ export default function Loading({ className }) {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading.propTypes = {
|
||||||
|
className: PropTypes.string,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Loading;
|
||||||
|
Loading…
Reference in New Issue
Block a user