Merge pull request #22026 from devuxer/patch-1

Replaced onActionTouchTap w/ onActionClick
This commit is contained in:
Arthur Ozga
2017-12-19 16:08:54 -08:00
committed by GitHub
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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;
+2 -2
View File
@@ -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>