Port 0b87919abf
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
th-downstream
parent
758a0ae1e9
commit
76e9386332
@ -1,11 +0,0 @@
|
|||||||
import React from 'react';
|
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
|
|
||||||
const Skeleton = ({ width, height }) => <span className='skeleton' style={{ width, height }}>‌</span>;
|
|
||||||
|
|
||||||
Skeleton.propTypes = {
|
|
||||||
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
||||||
height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
||||||
};
|
|
||||||
|
|
||||||
export default Skeleton;
|
|
@ -0,0 +1,12 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
width?: number | string;
|
||||||
|
height?: number | string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const Skeleton: React.FC<Props> = ({ width, height }) => (
|
||||||
|
<span className='skeleton' style={{ width, height }}>
|
||||||
|
‌
|
||||||
|
</span>
|
||||||
|
);
|
Loading…
Reference in new issue