2022-12-08 12:14:18 +08:00
|
|
|
import React from 'react';
|
2024-06-02 21:27:05 +08:00
|
|
|
import { css, Global } from '@emotion/react';
|
2023-07-20 19:27:33 +08:00
|
|
|
import { useTheme } from 'antd-style';
|
2022-12-08 12:14:18 +08:00
|
|
|
|
|
|
|
export default () => {
|
2023-07-20 19:27:33 +08:00
|
|
|
const token = useTheme();
|
2022-12-08 12:14:18 +08:00
|
|
|
return (
|
|
|
|
<Global
|
|
|
|
styles={css`
|
2022-12-19 13:23:28 +08:00
|
|
|
#nprogress {
|
|
|
|
.bar {
|
|
|
|
background: ${token.colorPrimary};
|
|
|
|
}
|
2022-12-08 12:14:18 +08:00
|
|
|
|
2022-12-19 13:23:28 +08:00
|
|
|
.peg {
|
2024-06-02 21:27:05 +08:00
|
|
|
box-shadow:
|
|
|
|
0 0 10px ${token.colorPrimary},
|
|
|
|
0 0 5px ${token.colorPrimary};
|
2022-12-19 13:23:28 +08:00
|
|
|
}
|
2022-12-08 12:14:18 +08:00
|
|
|
|
2022-12-19 13:23:28 +08:00
|
|
|
.spinner-icon {
|
|
|
|
border-top-color: ${token.colorPrimary};
|
|
|
|
border-left-color: ${token.colorPrimary};
|
2022-12-08 12:14:18 +08:00
|
|
|
}
|
2022-12-19 13:23:28 +08:00
|
|
|
}
|
|
|
|
`}
|
2022-12-08 12:14:18 +08:00
|
|
|
/>
|
|
|
|
);
|
|
|
|
};
|