From a96916291cf3a3cc0098be311eafa0c1843a57bc Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 16 Apr 2022 16:33:12 +0430 Subject: [PATCH] update App.js, src/components/Button/index.js, src/components/Feedback/index.js and src/components/ProductSuggestion/index.js --- src/App.js | 4 ++-- src/components/Button/index.js | 2 +- src/components/Feedback/index.js | 11 +++++------ src/components/ProductSuggestion/index.js | 8 +++++--- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/App.js b/src/App.js index ad31c02..7e97b0c 100644 --- a/src/App.js +++ b/src/App.js @@ -108,10 +108,10 @@ function App() { {/* */} {/* */} {/* */} - + {/* */} {/* */} {/* */} - + {/* */} {/* */} {/* */} diff --git a/src/components/Button/index.js b/src/components/Button/index.js index 68a4e5a..d966ecb 100644 --- a/src/components/Button/index.js +++ b/src/components/Button/index.js @@ -18,7 +18,7 @@ const Button = ({ className, iconClassName, icon, text, onClick }) => { export default Button; Button.defaultProps = { className: - "bg-darkGreenBg hover:bg-gray-900 textColor border border-lightBlueBorderColor border-b-4 border-lightBlueBorderColor rounded text-sm px-4 py-4", + "bg-red-400 text-white hover:bg-gray-900 border border-b-4 border-lightBlueBorderColor rounded text-sm px-4 py-4", iconClassName: "bg-darkGreenBg mr-2", text: "اطلاعات بیشتر", }; diff --git a/src/components/Feedback/index.js b/src/components/Feedback/index.js index bc9bf28..309e048 100644 --- a/src/components/Feedback/index.js +++ b/src/components/Feedback/index.js @@ -8,6 +8,7 @@ import speechlessEmoji from "../../assets/icons/speechless-emoji.svg"; import suspiciousEmoji from "../../assets/icons/suspicious-emoji.svg"; import heartEmoji from "../../assets/icons/heart-emoji.svg"; import upwardArrow from "../../assets/icons/gray-upward-icon.svg"; +import Button from "../Button"; const Feedback = ({ feedbacks }) => { const [closeModal, setCloseModal] = useState(false); @@ -57,12 +58,10 @@ const Feedback = ({ feedbacks }) => { className="resize-y w-full py-4 px-2 focus:outline-none text-sm h-44 z-20 bg-gray-100" placeholder="به ما در رابطه تجربه کار با سایتمون بگید..." > - + +