Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Commit

Permalink
fix: use new classnames (#2200)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpicone authored and asudoh committed Apr 12, 2019
1 parent 0e050a6 commit 2351b03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/components/DataTableSkeleton/DataTableSkeleton-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('DataTableSkeleton', () => {

it('Has the expected classes', () => {
expect(wrapper.hasClass('bx--skeleton')).toEqual(true);
expect(wrapper.hasClass('bx--data-table-v2')).toEqual(true);
expect(wrapper.hasClass('bx--data-table')).toEqual(true);
});

it('Has the correct number of rows and columns', () => {
Expand All @@ -50,8 +50,8 @@ describe('DataTableSkeleton Compact', () => {

it('Has the expected classes', () => {
expect(wrapper.hasClass('bx--skeleton')).toEqual(true);
expect(wrapper.hasClass('bx--data-table-v2')).toEqual(true);
expect(wrapper.hasClass('bx--data-table-v2--compact')).toEqual(true);
expect(wrapper.hasClass('bx--data-table')).toEqual(true);
expect(wrapper.hasClass('bx--data-table--compact')).toEqual(true);
});
});
});
Expand All @@ -62,8 +62,8 @@ describe('DataTableSkeleton Zebra', () => {

it('Has the expected classes', () => {
expect(wrapper.hasClass('bx--skeleton')).toEqual(true);
expect(wrapper.hasClass('bx--data-table-v2')).toEqual(true);
expect(wrapper.hasClass('bx--data-table-v2--zebra')).toEqual(true);
expect(wrapper.hasClass('bx--data-table')).toEqual(true);
expect(wrapper.hasClass('bx--data-table--zebra')).toEqual(true);
});
});
});
6 changes: 3 additions & 3 deletions src/components/DataTableSkeleton/DataTableSkeleton.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ const DataTableSkeleton = ({
}) => {
const dataTableSkeletonClasses = classNames({
[`${prefix}--skeleton`]: true,
[`${prefix}--data-table-v2`]: true,
[`${prefix}--data-table-v2--zebra`]: zebra,
[`${prefix}--data-table-v2--compact`]: compact,
[`${prefix}--data-table`]: true,
[`${prefix}--data-table--zebra`]: zebra,
[`${prefix}--data-table--compact`]: compact,
});

let normalizedHeaders;
Expand Down

0 comments on commit 2351b03

Please sign in to comment.