2022-12-27 15:46:44 +00:00
|
|
|
import { Loader } from '@vegaprotocol/ui-toolkit';
|
|
|
|
|
|
|
|
export const Preloader = () => {
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<style>
|
|
|
|
{`
|
|
|
|
body{
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2023-02-28 14:31:23 +00:00
|
|
|
margin: 0;
|
2022-12-27 15:46:44 +00:00
|
|
|
}
|
2023-02-28 14:31:23 +00:00
|
|
|
html.dark body{
|
|
|
|
background: #000;
|
|
|
|
}
|
2022-12-27 15:46:44 +00:00
|
|
|
`}
|
|
|
|
</style>
|
|
|
|
<div className="pre-loader">
|
2023-02-28 14:31:23 +00:00
|
|
|
<Loader />
|
2022-12-27 15:46:44 +00:00
|
|
|
</div>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Preloader;
|