diff --git a/src/components/Advertisements/Design3/index.js b/src/components/Advertisements/Design3/index.js index 72cd28f..cba5f57 100644 --- a/src/components/Advertisements/Design3/index.js +++ b/src/components/Advertisements/Design3/index.js @@ -4,17 +4,17 @@ import Button from "../../Button"; const AdvertisementDesign3 = ({ features }) => { return (
-
-

تبلیغات دانوینی

-

+

+

تبلیغات دانوینی

+

لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است.

{features.map((feature, i) => (
- -

+ icon +

{feature.title}

@@ -23,13 +23,10 @@ const AdvertisementDesign3 = ({ features }) => {
{ />
diff --git a/src/components/Toast/index.js b/src/components/Toast/index.js index 2029408..f5e5031 100644 --- a/src/components/Toast/index.js +++ b/src/components/Toast/index.js @@ -2,12 +2,11 @@ import React from "react"; -import "./index.scss"; - -import { toastAlert } from "../../redux/actions/modalActions"; +import { alert } from "../../redux/actions"; import { connect } from "react-redux"; function Toast(props) { + props.confirmAlert(); return (
{" "} @@ -162,4 +161,8 @@ const mapStateToProps = (state) => { return {}; }; -export default connect(mapStateToProps, { customAlert: toastAlert })(Toast); +const mapDispatchToProps = { + confirmAlert: alert.confirm, +}; + +export default connect(mapStateToProps, mapDispatchToProps)(Toast); diff --git a/src/redux/data.js b/src/redux/data.js index 1ee1471..74e906e 100644 --- a/src/redux/data.js +++ b/src/redux/data.js @@ -3,6 +3,8 @@ import Button from "../components/Button"; import Design2D from "../components/Design2D"; import AddToCartCard from "../components/AddToCart"; import Advertisements from "../components/Advertisements"; +import Alert from "../components/Alert"; +import Toast from "../components/Toast"; // import ButtonDesign from "./components/buttonDesign/ButtonDesign"; // import ProductDesign from "./components/productDesign/ProductDesign"; @@ -22,8 +24,6 @@ import Advertisements from "../components/Advertisements"; // import Testttt from "./components/testtttt/Testttt"; // import Features from "./components/Features/index"; // import Feedback from "./components/Feedback/index"; -// import Alert from "./components/Alert"; -// import Toast from "./components/Toast"; // import ProductSuggestion from "./components/ProductSuggestion"; // import ProductImage from "./components/ProductImage"; // import VodProduct from "./components/VodProduct"; @@ -146,6 +146,26 @@ const components = [ code: null, }, }, + { + name: "Alert", + author: "Andalib", + props: [], + content: { + name: "Alert", + component: , + code: null, + }, + }, + { + name: "Toast", + author: "Andalib", + props: [], + content: { + name: "Toast", + component: , + code: null, + }, + }, ]; export default components;