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