kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'loading-spinner-warnings' into 'develop'
LoadingSpinner: fix two warnings See merge request soapbox-pub/soapbox-fe!980party-hat
commit
9c2b72bf38
|
@ -6,9 +6,9 @@ import PropTypes from 'prop-types';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
const LoadingSpinner = ({ size = 30 }) => (
|
const LoadingSpinner = ({ size = 30 }) => (
|
||||||
<div class='lds-spinner' style={{ width: size, height: size }}>
|
<div className='lds-spinner' style={{ width: size, height: size }}>
|
||||||
{Array(12).fill().map(i => (
|
{[...Array(12).keys()].map(i => (
|
||||||
<div />
|
<div key={i} />
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Ładowanie…
Reference in New Issue