vega-frontend-monorepo/apps/trading/components/preloader/preloader.tsx
macqbat 64aa39fe4b
feat: add animated preloader (#2464)
* feat: add animated preloader

* feat: add animated preloader - add scss lines

* feat: add animated preloader - add scss lines

* feat: add animated preloader - ref scss lines

* feat: add animated preloader - add preloader property to loader component
2022-12-27 15:46:44 +00:00

23 lines
400 B
TypeScript

import { Loader } from '@vegaprotocol/ui-toolkit';
export const Preloader = () => {
return (
<>
<style>
{`
body{
display: block;
width: 100%;
height: 100%;
}
`}
</style>
<div className="pre-loader">
<Loader forceTheme="light" preloader />
</div>
</>
);
};
export default Preloader;