Skip to content

Commit

Permalink
feat(Tabs): migrate to restart/ui
Browse files Browse the repository at this point in the history
  • Loading branch information
kyletsang committed Aug 7, 2021
1 parent 6c56aba commit 8e3f3c2
Show file tree
Hide file tree
Showing 10 changed files with 97 additions and 734 deletions.
161 changes: 0 additions & 161 deletions src/AbstractNav.tsx

This file was deleted.

112 changes: 0 additions & 112 deletions src/AbstractNavItem.tsx

This file was deleted.

7 changes: 2 additions & 5 deletions src/Tab.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import PropTypes from 'prop-types';
import * as React from 'react';

import TabContainer from './TabContainer';
import Tabs from '@restart/ui/Tabs';
import TabContent from './TabContent';
import TabPane, { TabPaneProps } from './TabPane';
import { EventKey } from './types';

export interface TabProps extends Omit<TabPaneProps, 'title'> {
eventKey?: EventKey;
title: React.ReactNode;
disabled?: boolean;
tabClassName?: string;
Expand Down Expand Up @@ -46,7 +43,7 @@ const Tab: React.FC<TabProps> = () => {
Tab.propTypes = propTypes;

export default Object.assign(Tab, {
Container: TabContainer,
Container: Tabs,
Content: TabContent,
Pane: TabPane,
});
Loading

0 comments on commit 8e3f3c2

Please sign in to comment.