Skip to content

Commit 84ba396

Browse files
mpeyperebrillhart
authored andcommitted
Change prop from style to styles for table components (#463)
1 parent a0f37f0 commit 84ba396

File tree

6 files changed

+9
-38
lines changed

6 files changed

+9
-38
lines changed

src/components/__snapshots__/table-header-item.test.js.snap

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`<TableHeaderItem /> should render correctly 1`] = `
44
<TableHeaderItem>
55
<Styled(td)
66
className={undefined}
7-
style={
7+
styles={
88
Array [
99
Object {
1010
"color": "#e01",
@@ -16,17 +16,7 @@ exports[`<TableHeaderItem /> should render correctly 1`] = `
1616
}
1717
>
1818
<td
19-
className="css-0 e51bxha0"
20-
style={
21-
Array [
22-
Object {
23-
"color": "#e01",
24-
},
25-
Object {},
26-
Object {},
27-
undefined,
28-
]
29-
}
19+
className="css-4x5e e51bxha0"
3020
>
3121
Header Text
3222
</td>

src/components/__snapshots__/table-item.test.js.snap

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`<TableItem /> should render correctly 1`] = `
44
<TableItem>
55
<Styled(td)
66
className={undefined}
7-
style={
7+
styles={
88
Array [
99
Object {
1010
"color": "#444",
@@ -16,17 +16,7 @@ exports[`<TableItem /> should render correctly 1`] = `
1616
}
1717
>
1818
<td
19-
className="css-0 eaiy41g0"
20-
style={
21-
Array [
22-
Object {
23-
"color": "#444",
24-
},
25-
Object {},
26-
Object {},
27-
undefined,
28-
]
29-
}
19+
className="css-11os9ew eaiy41g0"
3020
>
3121
Table Item Content
3222
</td>

src/components/__snapshots__/table-row.test.js.snap

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports[`<TableRow /> should render correctly 1`] = `
44
<TableRow>
55
<Styled(tr)
66
className={undefined}
7-
style={
7+
styles={
88
Array [
99
Object {
1010
"color": "#00f",
@@ -15,16 +15,7 @@ exports[`<TableRow /> should render correctly 1`] = `
1515
}
1616
>
1717
<tr
18-
className="css-0 emir1a80"
19-
style={
20-
Array [
21-
Object {
22-
"color": "#00f",
23-
},
24-
Object {},
25-
undefined,
26-
]
27-
}
18+
className="css-1jziecw emir1a80"
2819
>
2920
<td>
3021
Table Row Content

src/components/table-header-item.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default class TableHeaderItem extends Component {
1111
return (
1212
<StyledTableHeaderItem
1313
className={this.props.className}
14-
style={[
14+
styles={[
1515
this.context.styles.components.tableHeaderItem,
1616
getStyles.call(this),
1717
typefaceStyle,

src/components/table-item.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default class TableItem extends Component {
1111
return (
1212
<StyledTableItem
1313
className={this.props.className}
14-
style={[
14+
styles={[
1515
this.context.styles.components.tableItem,
1616
getStyles.call(this),
1717
typefaceStyle,

src/components/table-row.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default class TableRow extends Component {
1010
return (
1111
<StyledTableRow
1212
className={this.props.className}
13-
style={[
13+
styles={[
1414
this.context.styles.components.tableRow,
1515
getStyles.call(this),
1616
this.props.style

0 commit comments

Comments
 (0)