Rewrite <Skeleton/>
as FC and TS (#25055)
This commit is contained in:
parent
711a037660
commit
8066118d1f
11 changed files with 21 additions and 20 deletions
12
app/javascript/mastodon/components/skeleton.tsx
Normal file
12
app/javascript/mastodon/components/skeleton.tsx
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue