mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-26 19:04:13 +08:00
Replaced onActionTouchTap w/ onActionClick
Snackbar property `onActionTouchTap` was replaced with `onActionClick` in [release 0.20.0](https://github.com/mui-org/material-ui/releases/tag/v0.20.0).
This relates to [pull request 9058](https://github.com/mui-org/material-ui/pull/9058) and specifically [this commit](bc97082dd3).
This commit is contained in:
4
types/material-ui/index.d.ts
vendored
4
types/material-ui/index.d.ts
vendored
@@ -1628,7 +1628,7 @@ declare namespace __MaterialUI {
|
||||
className?: string;
|
||||
contentStyle?: React.CSSProperties;
|
||||
message: React.ReactNode;
|
||||
onActionTouchTap?: React.TouchEventHandler<{}>;
|
||||
onActionClick?: React.MouseEventHandler<{}>;
|
||||
onRequestClose?(reason: string): void;
|
||||
open: boolean;
|
||||
style?: React.CSSProperties;
|
||||
@@ -1684,7 +1684,7 @@ declare namespace __MaterialUI {
|
||||
bodyStyle?: React.CSSProperties;
|
||||
className?: string;
|
||||
message: string | JSX.Element;
|
||||
onActionTouchTap?: React.TouchEventHandler<{}>;
|
||||
onActionClick?: React.MouseEventHandler<{}>;
|
||||
/** @deprecated Use the open property to control the component instead */
|
||||
onDismiss?(): void; // DEPRECATED
|
||||
onRequestClose(reason: string): void;
|
||||
|
||||
Reference in New Issue
Block a user