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:
parent
d5be21649a
commit
4ff2bd4fa2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user