Skip to content

Commit 8e3f3c2

Browse files
committed
feat(Tabs): migrate to restart/ui
1 parent 6c56aba commit 8e3f3c2

10 files changed

+97
-734
lines changed

src/AbstractNav.tsx

-161
This file was deleted.

src/AbstractNavItem.tsx

-112
This file was deleted.

src/Tab.tsx

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
import PropTypes from 'prop-types';
22
import * as React from 'react';
3-
4-
import TabContainer from './TabContainer';
3+
import Tabs from '@restart/ui/Tabs';
54
import TabContent from './TabContent';
65
import TabPane, { TabPaneProps } from './TabPane';
7-
import { EventKey } from './types';
86

97
export interface TabProps extends Omit<TabPaneProps, 'title'> {
10-
eventKey?: EventKey;
118
title: React.ReactNode;
129
disabled?: boolean;
1310
tabClassName?: string;
@@ -46,7 +43,7 @@ const Tab: React.FC<TabProps> = () => {
4643
Tab.propTypes = propTypes;
4744

4845
export default Object.assign(Tab, {
49-
Container: TabContainer,
46+
Container: Tabs,
5047
Content: TabContent,
5148
Pane: TabPane,
5249
});

0 commit comments

Comments
 (0)