Skip to content

Commit

Permalink
feat(dashboard): replace @ant-design/charts
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingkang committed Oct 29, 2020
1 parent b119f62 commit 7267644
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pages/dashboard/components/introduce-row/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import Card from '@ant-design/pro-card';
import InfoCircleOutlined from '@ant-design/icons/InfoCircleOutlined';
import { Tooltip, Statistic } from 'antd';
import { TinyArea, TinyColumn, Progress } from '@ant-design/charts';
import { TinyArea, TinyColumn, Progress } from '@pansy/react-charts';
import Trend from '../trend';
import styles from './index.less';

Expand Down
4 changes: 2 additions & 2 deletions src/pages/dashboard/components/proportion-sales/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import Card from '@ant-design/pro-card';
import { Pie } from '@ant-design/charts';
import { Pie } from '@pansy/react-charts';
import { Radio, Typography } from 'antd';
import { PieConfig } from '@ant-design/charts/es/pie'
import { PieConfig } from '@pansy/react-charts/es/pie'
import { RadioChangeEvent } from 'antd/es/radio';

export type SalesType = 'all' | 'online' | 'stores';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dashboard/components/sales-card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Row, Col } from 'antd';
import numeral from 'numeral';
import Card from '@ant-design/pro-card';
import { DaysRange } from '@alitajs/antd-plus';
import { Column } from '@ant-design/charts';
import { Column } from '@pansy/react-charts';
import styles from './index.less';

interface SalesCardProps {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dashboard/components/top-search/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { Row, Col, Statistic, Table } from 'antd';
import Card from '@ant-design/pro-card';
import { TinyArea } from '@ant-design/charts';
import { TinyArea } from '@pansy/react-charts';
import Trend from '../trend';

interface SearchData {
Expand Down

1 comment on commit 7267644

@vercel
Copy link

@vercel vercel bot commented on 7267644 Oct 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.