Skip to content

Commit

Permalink
docs: Fix dumi deps on rc-tabs (#592)
Browse files Browse the repository at this point in the history
* chore: init

* chore: clean up
  • Loading branch information
zombieJ authored Oct 10, 2022
1 parent ec9612d commit 2f4af9b
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 16 deletions.
7 changes: 6 additions & 1 deletion .umirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ export default defineConfig({
}
`,
],
});

chainWebpack(memo) {
memo.resolve.alias.delete('rc-tabs');
return memo;
},
});
2 changes: 1 addition & 1 deletion docs/examples/animated.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import Tabs from 'rc-tabs';
import Tabs from '../../src';
import type { CSSMotionProps } from 'rc-motion';
import '../../assets/index.less';
import './animated.less';
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/basic.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import Tabs from 'rc-tabs';
import Tabs from'../../src';
import '../../assets/index.less';

export default () => {
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/editable.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useRef } from 'react';
import Tabs from 'rc-tabs';
import Tabs from '../../src';
import '../../assets/index.less';

export default () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/extra.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import Tabs from 'rc-tabs';
import type { TabsProps } from 'rc-tabs';
import Tabs from '../../src';
import type { TabsProps } from '../../src';
import '../../assets/index.less';

const items: TabsProps['items'] = [];
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/mix.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import Tabs from 'rc-tabs';
import type { TabsProps } from 'rc-tabs';
import Tabs from '../../src';
import type { TabsProps } from '../../src';
import '../../assets/index.less';

function getTabPanes(count = 50) {
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/overflow.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import Tabs from 'rc-tabs';
import type { TabsProps } from 'rc-tabs';
import Tabs from '../../src';
import type { TabsProps } from '../../src';
import '../../assets/index.less';

const items: TabsProps['items'] = [];
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/position.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import Tabs from 'rc-tabs';
import Tabs from '../../src';
import '../../assets/index.less';

export default () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/renderTabBar-dragable.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import { DndProvider, DragSource, DropTarget } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import Tabs from 'rc-tabs';
import type { TabsProps } from 'rc-tabs';
import Tabs from '../../src';
import type { TabsProps } from '../../src';
import '../../assets/index.less';

// Drag & Drop node
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/renderTabBar-sticky.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { StickyContainer, Sticky } from 'react-sticky';
import Tabs from 'rc-tabs';
import Tabs from '../../src';
import '../../assets/index.less';

const renderTabBar = (props, DefaultTabBar) => (
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/renderTabBar-use-panes.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import Tabs from 'rc-tabs';
import Tabs from '../../src';
import '../../assets/index.less';

const renderTabBar = props => {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
"react-dnd": "^10.0.0",
"react-dnd-html5-backend": "^10.0.0",
"react-dom": "^16.0.0",
"react-router": "^3.0.0",
"react-sticky": "^6.0.3",
"react-test-renderer": "^16.0.0",
"sortablejs": "^1.7.0",
Expand Down

1 comment on commit 2f4af9b

@vercel
Copy link

@vercel vercel bot commented on 2f4af9b Oct 10, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

tabs – ./

tabs-git-master-react-component.vercel.app
tabs-react-component.vercel.app

Please sign in to comment.