Fixed text mismatch when doing SSR (#957)

* fixed a mismatch issue when doing ssr. made some windows-specific changes to ease contributing

* remove accidentally committed file
This commit is contained in:
Anthon Fredriksson
2018-05-25 00:27:57 +02:00
committed by Tanner Linsley
parent 72afabbd03
commit 621c3bf092
4 changed files with 8318 additions and 4 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
* text=auto

8312
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -27,9 +27,9 @@
],
"scripts": {
"build:cjs": "babel src --out-dir lib --source-maps inline",
"build:es": "BABEL_ENV=es babel src --out-dir es --source-maps inline",
"build:umd": "BABEL_ENV=umd rollup -c",
"build:umd-min": "BABEL_ENV=umd NODE_ENV=production rollup -c",
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es --source-maps inline",
"build:umd": "cross-env BABEL_ENV=umd rollup -c",
"build:umd-min": "cross-env BABEL_ENV=umd NODE_ENV=production rollup -c",
"build:css": "rimraf react-table.css && stylus src/index.styl --compress -o react-table.css && yarn css:autoprefix",
"css:autoprefix": "postcss --use autoprefixer react-table.css -r",
"watch": "npm-run-all --parallel watch:*",
@@ -58,6 +58,7 @@
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"cross-env": "^5.1.4",
"eslint": "^4.1.1",
"eslint-config-react-tools": "^1.0.10",
"eslint-plugin-class-property": "^1.0.6",

View File

@@ -115,7 +115,7 @@ export default class ReactTablePagination extends Component {
{pageSizeOptions.map((option, i) => (
// eslint-disable-next-line react/no-array-index-key
<option key={i} value={option}>
{option} {this.props.rowsText}
{`${option} ${this.props.rowsText}`}
</option>
))}
</select>