Completely updated React, fixed #11, (hopefully)
This commit is contained in:
9
goTorrentWebUI/node_modules/material-ui/utils/helpers.js.flow
generated
vendored
9
goTorrentWebUI/node_modules/material-ui/utils/helpers.js.flow
generated
vendored
@@ -2,11 +2,10 @@
|
||||
|
||||
import warning from 'warning';
|
||||
|
||||
export function capitalizeFirstLetter(string) {
|
||||
warning(
|
||||
typeof string === 'string',
|
||||
'Material-UI: capitalizeFirstLetter(string) expects a string argument.',
|
||||
);
|
||||
export function capitalize(string) {
|
||||
if (process.env.NODE_ENV !== 'production' && typeof string !== 'string') {
|
||||
throw new Error('Material-UI: capitalize(string) expects a string argument.');
|
||||
}
|
||||
|
||||
return string.charAt(0).toUpperCase() + string.slice(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user