diff --git a/src/components/QuestionAnswer/index.js b/src/components/QuestionAnswer/index.js new file mode 100644 index 0000000..a6f7d1b --- /dev/null +++ b/src/components/QuestionAnswer/index.js @@ -0,0 +1,25 @@ +import React, { useState } from "react"; + +import QandA from "./QandA"; + +function QuestionAnswer() { + const list = { + 1: , + }; + const [type, setType] = useState(1); + return ( +
+ + {list[type]} +
+ ); +} + +export default QuestionAnswer; diff --git a/src/redux/data.js b/src/redux/data.js index c8e6295..7ac7dbf 100644 --- a/src/redux/data.js +++ b/src/redux/data.js @@ -27,6 +27,7 @@ import Rating from "../components/Rating"; import Tooltip from "../components/Tooltip"; import ProductSuggestionCard from "../components/ProductSuggestionCard"; import ProductDescriptionTable from "../components/ProductDescriptionTable"; +import QuestionAnswer from "../components/QuestionAnswer"; // mini components import MiniComponents from "../components/MiniComponents"; @@ -610,6 +611,16 @@ const components = [ code: null, }, }, + { + name: "QandA", + author: "Ashrafi", + props: [], + content: { + name: "QandA", + component: , + code: null, + }, + }, // mini components { name: "Mini Components",