mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Merge pull request #22026 from devuxer/patch-1
Replaced onActionTouchTap w/ onActionClick
This commit is contained in:
Vendored
+3
-3
@@ -1,4 +1,4 @@
|
||||
// Type definitions for material-ui v0.18.17
|
||||
// Type definitions for material-ui v0.20.0
|
||||
// Project: https://github.com/callemall/material-ui
|
||||
// Definitions by: Nathan Brown <https://github.com/ngbrown>
|
||||
// Igor Beagorudsky <https://github.com/theigor>
|
||||
@@ -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;
|
||||
|
||||
@@ -5736,7 +5736,7 @@ class SnackbarExampleAction extends Component<{}, {open?: boolean, autoHideDurat
|
||||
});
|
||||
}
|
||||
|
||||
handleActionTouchTap = () => {
|
||||
handleActionClick = () => {
|
||||
this.setState({
|
||||
open: false,
|
||||
});
|
||||
@@ -5774,7 +5774,7 @@ class SnackbarExampleAction extends Component<{}, {open?: boolean, autoHideDurat
|
||||
message={this.state.message}
|
||||
action="undo"
|
||||
autoHideDuration={this.state.autoHideDuration}
|
||||
onActionTouchTap={this.handleActionTouchTap}
|
||||
onActionClick={this.handleActionClick}
|
||||
onRequestClose={this.handleRequestClose}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user