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 (