ToolJet/frontend/src/Editor/Components/Spinner.jsx
Kiran Ashok 4267027465
Bugfix :: Box shadow is getting applied to the surrounding box (#6802)
* feat :: temp commit added box shadow for freq used components

* fix :: box shadow for all components

* cleanup

* review :: changes , sending boz shadow with styles

* fix :: apply box shadow to the item instead of container

* fix :: daterange picker shadows
2023-06-29 15:14:05 +05:30

17 lines
453 B
JavaScript

import React from 'react';
export const Spinner = ({ styles, height, dataCy }) => {
const { colour, size, visibility, boxShadow } = styles;
const baseStyle = {
height,
display: visibility ? '' : 'none',
boxShadow,
};
return (
<div className="spinner-container" style={baseStyle} data-cy={dataCy}>
<div className={`spinner-border spinner-border-${size}`} role="status" style={{ color: colour }}></div>
</div>
);
};