Skip to content

Commit

Permalink
(split)temporarily remove the link to the docs, we need perma links i…
Browse files Browse the repository at this point in the history
…nstead cssinjs#1006
  • Loading branch information
kof committed Feb 4, 2019
1 parent 129759b commit 1c6bae2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"dist/react-jss.js": {
"bundled": 132277,
"minified": 44968,
"gzipped": 13372
"bundled": 132222,
"minified": 44913,
"gzipped": 13322
},
"dist/react-jss.min.js": {
"bundled": 100312,
"minified": 34926,
"gzipped": 10494
},
"dist/react-jss.cjs.js": {
"bundled": 14771,
"minified": 6929,
"gzipped": 2359
"bundled": 14716,
"minified": 6874,
"gzipped": 2311
},
"dist/react-jss.esm.js": {
"bundled": 14090,
"minified": 6349,
"gzipped": 2244,
"bundled": 14035,
"minified": 6294,
"gzipped": 2196,
"treeshaked": {
"rollup": {
"code": 1946,
Expand Down
2 changes: 1 addition & 1 deletion src/withStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const getStyles = <Theme: {}>(styles: Styles<Theme>, theme: Theme, displayName:
}
warning(
styles.length !== 0,
`[JSS] <${displayName} />'s styles function doesn't rely on a theme. We recommend to rewrite it to plain object. Read more: https://github.com/cssinjs/jss/blob/master/docs/react-jss.md#basic`
`[JSS] <${displayName} />'s styles function doesn't rely on the "theme" argument. We recommend declaring styles as an object instead.`
)

return styles(theme)
Expand Down
2 changes: 1 addition & 1 deletion src/withStyles.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ describe('React-JSS: withStyles', () => {

expect(
console.warn.calledWithExactly(
`Warning: [JSS] <DisplayNameTest />'s styles function doesn't rely on a theme. We recommend to rewrite it to plain object. Read more: https://github.com/cssinjs/jss/blob/master/docs/react-jss.md#basic`
`Warning: [JSS] <DisplayNameTest />'s styles function doesn't rely on the "theme" argument. We recommend declaring styles as an object instead.`
)
).to.be(true)
})
Expand Down

0 comments on commit 1c6bae2

Please sign in to comment.