From 523e3ff03c8f5f1ac9fa72ade45efe9415e33c57 Mon Sep 17 00:00:00 2001 From: Mathias Vestergaard Date: Thu, 23 Jan 2020 13:39:40 +0100 Subject: [PATCH] Change the typings of Clock to use a static type as ClassKeyThis fixes some compatibility issues with material-ui 4.9.0It should also be backwards compatibleFixes #1465 --- lib/src/views/Clock/Clock.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/views/Clock/Clock.tsx b/lib/src/views/Clock/Clock.tsx index d3a567277..a936fdb98 100644 --- a/lib/src/views/Clock/Clock.tsx +++ b/lib/src/views/Clock/Clock.tsx @@ -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 { +export interface ClockProps extends WithStyles> { type: ClockViewType; value: number; onChange: (value: number, isFinish?: boolean) => void;