You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
carbon/components/SpinnerWrapper.js

23 lines
381 B
JavaScript

import React from 'react'
import Spinner from 'react-spinner'
export default function SpinnerWrapper(props) {
if (props.loading) {
return (
<div>
<Spinner />
<style jsx>
{`
div {
width: 876px;
height: 240px;
}
`}
</style>
</div>
)
}
return props.children
}