Browse Source

style: simplify RTL prop & revert react-sticky-box Version (#41815)

* lock sticky-box version to fix CI

* revert
pull/41828/head
lijianan 2 years ago
committed by GitHub
parent
commit
dce42602f6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      .dumi/theme/layouts/DocLayout/index.tsx
  2. 2
      package.json

22
.dumi/theme/layouts/DocLayout/index.tsx

@ -1,18 +1,18 @@
import React, { useContext, useEffect, useLayoutEffect, useMemo, useRef } from 'react';
import 'dayjs/locale/zh-cn';
import dayjs from 'dayjs';
import { Helmet, useOutlet, useSiteData } from 'dumi';
import '../../static/style';
import ConfigProvider from 'antd/es/config-provider';
import classNames from 'classnames';
import zhCN from 'antd/es/locale/zh_CN';
import SiteContext from '../../slots/SiteContext';
import Header from '../../slots/Header';
import Footer from '../../slots/Footer';
import classNames from 'classnames';
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
import { Helmet, useOutlet, useSiteData } from 'dumi';
import React, { useContext, useEffect, useLayoutEffect, useMemo, useRef } from 'react';
import useLocale from '../../../hooks/useLocale';
import useLocation from '../../../hooks/useLocation';
import ResourceLayout from '../ResourceLayout';
import GlobalStyles from '../../common/GlobalStyles';
import Footer from '../../slots/Footer';
import Header from '../../slots/Header';
import SiteContext from '../../slots/SiteContext';
import '../../static/style';
import ResourceLayout from '../ResourceLayout';
import SidebarLayout from '../SidebarLayout';
const locales = {
@ -96,7 +96,7 @@ const DocLayout: React.FC = () => {
<html
lang={lang}
data-direction={direction}
className={classNames({ [`rtl`]: direction === 'rtl' })}
className={classNames({ rtl: direction === 'rtl' })}
/>
<title>{locale?.title}</title>
<link

2
package.json

@ -267,7 +267,7 @@
"react-infinite-scroll-component": "^6.1.0",
"react-resizable": "^3.0.1",
"react-router-dom": "^6.0.2",
"react-sticky-box": "2.0.0",
"react-sticky-box": "^2.0.0",
"react-window": "^1.8.5",
"remark": "^14.0.1",
"remark-cli": "^11.0.0",

Loading…
Cancel
Save