|
|
|
@ -7,13 +7,14 @@ import { connect } from "react-redux"; |
|
|
|
|
|
|
|
|
|
function Toast(props) { |
|
|
|
|
props.confirmAlert(); |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div className=""> |
|
|
|
|
{/* toast1 */} |
|
|
|
|
<button |
|
|
|
|
className="bg-orange-300 p-4 rounded text-white m-4" |
|
|
|
|
onClick={() => |
|
|
|
|
props.customAlert({ |
|
|
|
|
props.confirmAlert({ |
|
|
|
|
icon: "error", |
|
|
|
|
title: "ارور شماره 1", |
|
|
|
|
showCloseButton: true, |
|
|
|
@ -37,7 +38,7 @@ function Toast(props) { |
|
|
|
|
<button |
|
|
|
|
className="bg-orange-300 p-4 rounded text-white m-4" |
|
|
|
|
onClick={() => |
|
|
|
|
props.customAlert({ |
|
|
|
|
props.confirmAlert({ |
|
|
|
|
icon: "success", |
|
|
|
|
title: "ارور شماره 2", |
|
|
|
|
showCloseButton: true, |
|
|
|
@ -60,7 +61,7 @@ function Toast(props) { |
|
|
|
|
<button |
|
|
|
|
className="bg-orange-300 p-4 rounded text-white m-4" |
|
|
|
|
onClick={() => |
|
|
|
|
props.customAlert({ |
|
|
|
|
props.confirmAlert({ |
|
|
|
|
icon: false, |
|
|
|
|
title: "ارور شماره 1", |
|
|
|
|
showCloseButton: true, |
|
|
|
@ -84,7 +85,7 @@ function Toast(props) { |
|
|
|
|
<button |
|
|
|
|
className="bg-orange-300 p-4 rounded text-white m-4" |
|
|
|
|
onClick={() => |
|
|
|
|
props.customAlert({ |
|
|
|
|
props.confirmAlert({ |
|
|
|
|
icon: false, |
|
|
|
|
title: "ارور شماره 2", |
|
|
|
|
showCloseButton: true, |
|
|
|
@ -107,7 +108,7 @@ function Toast(props) { |
|
|
|
|
<button |
|
|
|
|
className="bg-orange-300 p-4 rounded text-white m-4" |
|
|
|
|
onClick={() => |
|
|
|
|
props.customAlert({ |
|
|
|
|
props.confirmAlert({ |
|
|
|
|
icon: false, |
|
|
|
|
title: "ارور شماره 2", |
|
|
|
|
showCloseButton: true, |
|
|
|
@ -130,7 +131,7 @@ function Toast(props) { |
|
|
|
|
<button |
|
|
|
|
className="bg-orange-300 p-4 rounded text-white m-4" |
|
|
|
|
onClick={() => |
|
|
|
|
props.customAlert({ |
|
|
|
|
props.confirmAlert({ |
|
|
|
|
icon: false, |
|
|
|
|
title: "ارور شماره 2", |
|
|
|
|
showCloseButton: true, |
|
|
|
|