Skip to content

Commit

Permalink
Change the typings of Clock to use a static type as ClassKeyThis fixe…
Browse files Browse the repository at this point in the history
…s some compatibility issues with material-ui 4.9.0It should also be backwards compatibleFixes mui#1465
  • Loading branch information
mvestergaard committed Jan 24, 2020
1 parent a865eaa commit 523e3ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/views/Clock/Clock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ClockType, { ClockViewType } from '../../constants/ClockType';
import { getHours, getMinutes } from '../../_helpers/time-utils';
import { withStyles, createStyles, WithStyles, Theme } from '@material-ui/core/styles';

export interface ClockProps extends WithStyles<typeof styles> {
export interface ClockProps extends WithStyles<keyof ReturnType<typeof styles>> {
type: ClockViewType;
value: number;
onChange: (value: number, isFinish?: boolean) => void;
Expand Down

0 comments on commit 523e3ff

Please sign in to comment.