From 68115e572b2d757216978b34ab7e01956b4838ed Mon Sep 17 00:00:00 2001 From: Micheal Ndondo <70109131+nd0nd0@users.noreply.github.com> Date: Sat, 28 Oct 2023 12:06:35 +0300 Subject: [PATCH] issue #26 : Change widget position From a UX point of view, it is recommended to keep chat icons on the bottom right corner of your website, as this is a familiar and usual spot where people naturally notice and navigate. However, UX is subjective. This PR added support issue #26 . I would recommend the WA button to have a high contrast background `#5ad167` and the WA chat icon in `white` in light mode situations and vice versa --> issue #27 --- src/components/app/app.component.jsx | 7 ++++--- src/components/app/app.module.css | 10 +++++++++- src/components/wa-button/wa-button.component.jsx | 10 ++++++++-- src/components/wa-button/wa-button.module.css | 9 ++++++++- 4 files changed, 29 insertions(+), 7 deletions(-) diff --git a/src/components/app/app.component.jsx b/src/components/app/app.component.jsx index 6a8563f..a39e64b 100644 --- a/src/components/app/app.component.jsx +++ b/src/components/app/app.component.jsx @@ -1,5 +1,4 @@ import React, { useContext, Fragment, useEffect } from 'react'; - import { ChatContext } from '../../contexts/chat.context'; import ChatBox from '../chat-box/chat-box.component'; import Header from '../header/header.component'; @@ -8,6 +7,7 @@ import WaButton from '../wa-button/wa-button.component'; import styles from './app.module.css'; const App = (props) => { + console.log("🚀 ~ file: app.component.jsx:10 ~ App ~ props:", props) const { isChatOpen, setIsChatOpen } = useContext(ChatContext); useEffect(() => { if (props.open) { @@ -20,13 +20,14 @@ const App = (props) => {