Skip to content

Commit

Permalink
fix(components): enable css prop on TableRow
Browse files Browse the repository at this point in the history
beta
  • Loading branch information
connor-baer committed Jul 24, 2020
1 parent 0f96c7d commit 947cc44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/components/Table/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ class Table extends Component {
scrollable,
onRowClick,
onSortBy,
rows,
...props
} = this.props;
const {
Expand All @@ -256,7 +257,7 @@ class Table extends Component {
tableBodyHeight,
} = this.state;

const rows = this.getSortedRows();
const sortedRows = this.getSortedRows();

return (
<TableContainer
Expand Down Expand Up @@ -292,7 +293,7 @@ class Table extends Component {
<TableBody
condensed={condensed}
scrollable={scrollable}
rows={rows}
rows={sortedRows}
rowHeaders={rowHeaders}
sortHover={sortHover}
onRowClick={onRowClick}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Table/components/TableRow/TableRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
* limitations under the License.
*/

import React from 'react';
/** @jsx jsx */
import styled from '@emotion/styled';
import { css } from '@emotion/core';
import { css, jsx } from '@emotion/core';

import { isEnter, isSpacebar } from '../../../../util/key-codes';
import { focusOutline } from '../../../../styles/style-helpers';
Expand Down

0 comments on commit 947cc44

Please sign in to comment.