Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use XProvider instead of ConfigProvider. #127

Merged
merged 14 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .dumi/components/SemanticPreview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Col, ConfigProvider, Flex, Row, Tag, Typography, theme } from 'antd';
import { XProvider } from '@ant-design/x';
import { Col, Flex, Row, Tag, Typography, theme } from 'antd';
import { createStyles, css } from 'antd-style';
import classnames from 'classnames';
import React from 'react';
Expand Down Expand Up @@ -137,7 +138,7 @@ const SemanticPreview: React.FC<SemanticPreviewProps> = (props) => {
<div className={classnames(styles.container)} ref={containerRef}>
<Row style={{ minHeight: height }}>
<Col span={16} className={classnames(styles.colWrap)}>
<ConfigProvider theme={{ token: { motion: false } }}>{cloneNode}</ConfigProvider>
<XProvider theme={{ token: { motion: false } }}>{cloneNode}</XProvider>
</Col>
<Col span={8}>
<ul className={classnames(styles.listWrap)}>
Expand Down
3 changes: 2 additions & 1 deletion .dumi/hooks/useMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { version } from '@ant-design/x';
import type { MenuProps } from 'antd';
import { Space, Tag, version } from 'antd';
import { Space, Tag } from 'antd';
import { createStyles } from 'antd-style';
import classnames from 'classnames';
import { useFullSidebarData, useSidebarData } from 'dumi';
Expand Down
299 changes: 0 additions & 299 deletions .dumi/pages/index/components/ComponentsList.tsx

This file was deleted.

Loading
Loading