diff --git a/src/components/UI/Form/WhatsAppEditor/WhatsAppEditor.tsx b/src/components/UI/Form/WhatsAppEditor/WhatsAppEditor.tsx index b82ec7e23..3f4f34e05 100644 --- a/src/components/UI/Form/WhatsAppEditor/WhatsAppEditor.tsx +++ b/src/components/UI/Form/WhatsAppEditor/WhatsAppEditor.tsx @@ -44,9 +44,7 @@ export const WhatsAppEditor = ({ }; useEffect(() => { - if (readOnly) { - editor.setEditable(false); - } + editor.setEditable(!readOnly); }, [readOnly]); useEffect(() => { diff --git a/src/components/UI/Heading/Heading.module.css b/src/components/UI/Heading/Heading.module.css index 21edd3575..03fbb8e55 100644 --- a/src/components/UI/Heading/Heading.module.css +++ b/src/components/UI/Heading/Heading.module.css @@ -12,10 +12,9 @@ } .HeadingTitle { - vertical-align: middle; color: #191c1a; display: flex; - align-items: first baseline; + align-items: center; font-weight: 700; font-size: 38px; } @@ -33,3 +32,9 @@ .TitleText { margin-right: 8px; } + +.BackIcon { + margin-left: -10px; + margin-right: 10px; + cursor: pointer; +} diff --git a/src/components/UI/Heading/Heading.tsx b/src/components/UI/Heading/Heading.tsx index 645ac9c53..b60f587a7 100644 --- a/src/components/UI/Heading/Heading.tsx +++ b/src/components/UI/Heading/Heading.tsx @@ -1,17 +1,28 @@ +import { useNavigate } from 'react-router-dom'; import HelpIcon from '../HelpIcon/HelpIcon'; import styles from './Heading.module.css'; +import BackIcon from 'assets/images/icons/BackIconFlow.svg?react'; export interface HeadingProps { formTitle: string; helpData?: any; showHeaderHelp?: boolean; + backLink?: string; } -export const Heading = ({ formTitle, helpData, showHeaderHelp = true }: HeadingProps) => { +export const Heading = ({ formTitle, helpData, showHeaderHelp = true, backLink }: HeadingProps) => { + const navigate = useNavigate(); return (
+ {backLink && ( + navigate(backLink)} + className={styles.BackIcon} + data-testid="back-button" + /> + )}
{formTitle}
{helpData ? : ''}
diff --git a/src/containers/Auth/Promotion/Promotion.tsx b/src/containers/Auth/Promotion/Promotion.tsx index d29c3f441..102c26987 100644 --- a/src/containers/Auth/Promotion/Promotion.tsx +++ b/src/containers/Auth/Promotion/Promotion.tsx @@ -3,8 +3,6 @@ import MinimizeIcon from 'assets/images/icons/Minimize.svg?react'; import MaximizeIcon from 'assets/images/icons/Maximize.svg?react'; import styles from './Promotion.module.css'; -const hostname = location.hostname.replace('.glific.com', ''); - export const Promotion = () => { const [minimized, setMinimized] = useState(false); @@ -15,7 +13,7 @@ export const Promotion = () => {
NEW!
{minimized ? ( <> -
New Website Address!
+
New Look Alert!
setMinimized(!minimized)} @@ -34,27 +32,19 @@ export const Promotion = () => {
{1}
- We're Moving: tides.coloredcow.com is changing to{' '} - glific.com! To access your Glific account use{' '} - {hostname}.glific.com - instead of{' '} - - {hostname} - .tides.coloredcow.com - + Big News: Glific gets a fresh interface starting March 12th! We've + improved our design for a better experience.
2
- What this means? {hostname}.tides.coloredcow.com - page will become inactive on 31st March. Bookmark the new Glific address right away + What It Means: From March 12th, enjoy Glific's sleek, modern look, + making navigation smoother.
-
- Note: Please ignore if you already have a glific.com account -
+
Discover the new Glific. We're excited for you to see the updates!
{/* diff --git a/src/containers/Chat/ChatConversations/ConversationList/ConversationList.tsx b/src/containers/Chat/ChatConversations/ConversationList/ConversationList.tsx index 1a9e3b69b..d616fff95 100644 --- a/src/containers/Chat/ChatConversations/ConversationList/ConversationList.tsx +++ b/src/containers/Chat/ChatConversations/ConversationList/ConversationList.tsx @@ -264,7 +264,7 @@ export const ConversationList = ({ } return ( - + {index === 0 ? header : null} { + const currentTab = tabs.filter((tab) => location.pathname === tab.link); + if (currentTab.length) { + setValue(currentTab[0].link); + } + }, [location]); + if (loading) return ; if (error) { setErrorMessage(error); diff --git a/src/containers/Chat/ChatMessages/AddVariables/AddVariables.module.css b/src/containers/Chat/ChatMessages/AddVariables/AddVariables.module.css index e05594a37..5ccbf111d 100644 --- a/src/containers/Chat/ChatMessages/AddVariables/AddVariables.module.css +++ b/src/containers/Chat/ChatMessages/AddVariables/AddVariables.module.css @@ -1,3 +1,7 @@ .TemplateText { margin-bottom: 8px; } + +.Field { + margin-top: 16px; +} diff --git a/src/containers/Chat/ChatMessages/AddVariables/AddVariables.tsx b/src/containers/Chat/ChatMessages/AddVariables/AddVariables.tsx index 1e1a1e62a..96a1efdea 100644 --- a/src/containers/Chat/ChatMessages/AddVariables/AddVariables.tsx +++ b/src/containers/Chat/ChatMessages/AddVariables/AddVariables.tsx @@ -95,6 +95,7 @@ export const AddVariables = ({ syncInitialValuesWithFormik(newInputValue, index); }, label: `Variable ${index}`, + placeholder: `Variable ${index}`, }); } @@ -143,7 +144,9 @@ export const AddVariables = ({
{template?.body}
{formFieldItems.map((field: any) => ( - +
+ +
))}
diff --git a/src/containers/Chat/ChatMessages/ChatInput/ChatInput.tsx b/src/containers/Chat/ChatMessages/ChatInput/ChatInput.tsx index 0468c8ea0..f5f7723c8 100644 --- a/src/containers/Chat/ChatMessages/ChatInput/ChatInput.tsx +++ b/src/containers/Chat/ChatMessages/ChatInput/ChatInput.tsx @@ -416,9 +416,8 @@ export const ChatInput = ({ > {dialog} - - {open ? ( -