refactor: Replace react-bootstrap tabs with Antd tabs on Profile (#11211)

* Create styled Antd Tabs and Dropdown

* Replace Tabs in Profile view

* Change some hard coded variables to theme

* Lint fix
This commit is contained in:
Kamil Gabryjelski
2020-10-22 23:19:37 +02:00
committed by GitHub
parent dc5e5a978b
commit 30c71fd794
5 changed files with 47 additions and 38 deletions

View File

@@ -17,9 +17,10 @@
* under the License.
*/
import React from 'react';
import { Col, Row, Tab } from 'react-bootstrap';
import { Col, Row } from 'react-bootstrap';
import { shallow } from 'enzyme';
import App from 'src/profile/components/App';
import Tabs from 'src/common/components/Tabs';
import { user } from './fixtures';
@@ -39,6 +40,6 @@ describe('App', () => {
it('renders 4 Tabs', () => {
const wrapper = shallow(<App {...mockedProps} />);
expect(wrapper.find(Tab)).toHaveLength(4);
expect(wrapper.find(Tabs.TabPane)).toHaveLength(4);
});
});