Skip to content

Commit

Permalink
Use createStyles in ValidationIcon.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Lily Hoskin authored and edgarmueller committed Jul 4, 2019
1 parent d2eb8f1 commit 97c08a6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/material/src/complex/ValidationIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,19 @@ import ErrorOutlineIcon from '@material-ui/icons/ErrorOutline';
import Tooltip from '@material-ui/core/Tooltip';
import {
StyledComponentProps,
StyleRulesCallback,
withStyles,
WithStyles
WithStyles,
createStyles,
Theme
} from '@material-ui/core/styles';
import { compose } from 'redux';

export { StyledComponentProps };
const styles: StyleRulesCallback<'badge'> = ({ palette }) => ({
const styles = createStyles(({ palette }: Theme) => ({
badge: {
color: palette.error.main
}
});
}));

export interface ValidationProps {
errorMessages: string;
Expand Down

0 comments on commit 97c08a6

Please sign in to comment.