Skip to content

Commit

Permalink
refactor(toast): remove unnecessary open prop
Browse files Browse the repository at this point in the history
Signed-off-by: Machiko Yasuda <machiko@reactioncommerce.com>
  • Loading branch information
Machiko Yasuda committed Oct 4, 2019
1 parent 23b0c54 commit 1e0a623
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions package/src/components/Toast/Toast.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ import { ToastWrapper } from "./helpers";
*/
const Toast = React.forwardRef(function Toast(props, ref) {
const { message, variant, title, onClose, ...otherProps } = props;
const [open] = React.useState(false);

return (
<Snackbar
ref={ref}
open={open}
{...otherProps}
>
<ToastWrapper
Expand Down

0 comments on commit 1e0a623

Please sign in to comment.