Skip to content

Commit

Permalink
drop withstyles
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Manuel committed Sep 20, 2020
1 parent b6ea939 commit dac965c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 18 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ dist

# TernJS port file
.tern-port

#Custom
.DS_Store
12 changes: 6 additions & 6 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"sigeco-tools.umd.js": {
"bundled": 380232,
"minified": 131786,
"gzipped": 38780
"bundled": 379891,
"minified": 131622,
"gzipped": 38728
},
"sigeco-tools.umd.min.js": {
"bundled": 327872,
"minified": 112570,
"gzipped": 32858
"bundled": 327531,
"minified": 112408,
"gzipped": 32856
}
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sigeco/tools",
"version": "1.0.1",
"version": "1.0.2",
"description": "Tools for sigeco",
"license": "MIT",
"homepage": "https://github.com/juanmaabanto/sigeco-tools",
Expand Down
1 change: 0 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const globals = {
'@material-ui/core/Paper': 'MaterialUI.Paper',
'@material-ui/core/Select': 'MaterialUI.Select',
'@material-ui/core/styles': 'MaterialUI',
'@material-ui/core/styles/withStyles': 'MaterialUI.withStyles',
'@material-ui/core/TableSortLabel': 'MaterialUI.TableSortLabel',
'@material-ui/core/TextField': 'MaterialUI.TextField',
'@material-ui/core/Tooltip': 'MaterialUI.Tooltip'
Expand Down
12 changes: 3 additions & 9 deletions src/ActionField/ActionField.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import IconButton from '@material-ui/core/IconButton';
import InputAdornment from '@material-ui/core/InputAdornment';
import TextField from '@material-ui/core/TextField';
import withStyles from '@material-ui/core/styles/withStyles';

export const styles = {
root: { }
};

const ActionField = React.forwardRef(function ActionField(props, ref) {
const {
autoComplete = 'off',
autoFocus = false,
classes,
classes,
className,
disabled = false,
error = false,
Expand Down Expand Up @@ -46,7 +40,7 @@ const ActionField = React.forwardRef(function ActionField(props, ref) {
<TextField
autoComplete={autoComplete}
autoFocus={autoFocus}
className={clsx(classes.root, className)}
className={className}
disabled={disabled}
error={error}
fullWidth={fullWidth}
Expand Down Expand Up @@ -98,4 +92,4 @@ ActionField.propTypes = {
variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])
};

export default withStyles(styles)(ActionField);
export default ActionField;

0 comments on commit dac965c

Please sign in to comment.