Browse Source

[CodeFactor] Apply fixes

docs/rm-emotion-react
codefactor-io 1 year ago
parent
commit
3f209b00c1
No known key found for this signature in database GPG Key ID: B66B2D63282C190F
  1. 6
      .dumi/pages/index/components/Banner.tsx

6
.dumi/pages/index/components/Banner.tsx

@ -24,8 +24,7 @@ const locales = {
const useStyle = () => { const useStyle = () => {
const { isMobile } = React.useContext(SiteContext); const { isMobile } = React.useContext(SiteContext);
return createStyles(({ token }) => { return createStyles(({ token }) => ({
return {
titleBase: css` titleBase: css`
h1& { h1& {
font-family: AliPuHui, ${token.fontFamily}; font-family: AliPuHui, ${token.fontFamily};
@ -47,8 +46,7 @@ const useStyle = () => {
font-size: 68px; font-size: 68px;
} }
`, `,
}; }))();
})();
}; };
export interface BannerProps { export interface BannerProps {

Loading…
Cancel
Save