update src/components/Alert/index.js

master
mahdi 2 years ago
parent 0516ccc9b6
commit c45bc1f546
  1. 20
      src/components/Alert/index.js

@ -12,7 +12,7 @@ function Alert(props) {
<div className=""> <div className="">
{/* 1 */} {/* 1 */}
<button <button
className="bg-red-600 p-4 rounded text-white m-4" className="bg-error p-4 rounded text-white m-4"
onClick={() => onClick={() =>
props.confirmAlert({ props.confirmAlert({
title: "اررور شماره 1", title: "اررور شماره 1",
@ -32,7 +32,7 @@ function Alert(props) {
</button> </button>
{/* 2 */} {/* 2 */}
<button <button
className="bg-red-600 p-4 rounded text-white m-4" className="bg-error p-4 rounded text-white m-4"
onClick={() => onClick={() =>
props.confirmAlert({ props.confirmAlert({
title: "اررور شماره 1", title: "اررور شماره 1",
@ -54,7 +54,7 @@ function Alert(props) {
</button> </button>
{/* 3 */} {/* 3 */}
<button <button
className="bg-red-600 p-4 rounded text-white m-4" className="bg-error p-4 rounded text-white m-4"
onClick={() => onClick={() =>
props.confirmAlert({ props.confirmAlert({
title: "اررور شماره 1", title: "اررور شماره 1",
@ -76,7 +76,7 @@ function Alert(props) {
</button> </button>
{/* 4 */} {/* 4 */}
<button <button
className="bg-red-600 p-4 rounded text-white m-4" className="bg-error p-4 rounded text-white m-4"
onClick={() => onClick={() =>
props.confirmAlert({ props.confirmAlert({
icon: "success", icon: "success",
@ -99,7 +99,7 @@ function Alert(props) {
</button> </button>
{/* 5 */} {/* 5 */}
<button <button
className="bg-red-600 p-4 rounded text-white m-4" className="bg-error p-4 rounded text-white m-4"
onClick={() => onClick={() =>
props.confirmAlert({ props.confirmAlert({
input: "email", input: "email",
@ -125,7 +125,7 @@ function Alert(props) {
</button> </button>
{/* 6 */} {/* 6 */}
<button <button
className="bg-red-600 p-4 rounded text-white m-4" className="bg-error p-4 rounded text-white m-4"
onClick={() => onClick={() =>
props.confirmAlert({ props.confirmAlert({
title: "اررور شماره 1", title: "اررور شماره 1",
@ -145,7 +145,7 @@ function Alert(props) {
</button> </button>
{/* 7 */} {/* 7 */}
<button <button
className="bg-red-600 p-4 rounded text-white m-4" className="bg-error p-4 rounded text-white m-4"
onClick={() => onClick={() =>
props.confirmAlert({ props.confirmAlert({
title: "اررور شماره 1", title: "اررور شماره 1",
@ -167,7 +167,7 @@ function Alert(props) {
</button> </button>
{/* 8 */} {/* 8 */}
<button <button
className="bg-red-600 p-4 rounded text-white m-4" className="bg-error p-4 rounded text-white m-4"
onClick={() => onClick={() =>
props.confirmAlert({ props.confirmAlert({
icon: "error", icon: "error",
@ -190,7 +190,7 @@ function Alert(props) {
</button> </button>
{/* 9 */} {/* 9 */}
<button <button
className="bg-red-600 p-4 rounded text-white m-4" className="bg-error p-4 rounded text-white m-4"
onClick={() => onClick={() =>
props.confirmAlert({ props.confirmAlert({
title: "این ارور بسیار مهم ", title: "این ارور بسیار مهم ",
@ -215,7 +215,7 @@ function Alert(props) {
</button> </button>
{/* 10 */} {/* 10 */}
<button <button
className="bg-red-600 p-4 rounded text-white m-4" className="bg-error p-4 rounded text-white m-4"
onClick={() => onClick={() =>
props.confirmAlert({ props.confirmAlert({
title: "این ارور بسیار مهم ", title: "این ارور بسیار مهم ",

Loading…
Cancel
Save