diff --git a/public/index.html b/public/index.html index 0e6121749..5191c7907 100644 --- a/public/index.html +++ b/public/index.html @@ -29,7 +29,7 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - Isomer CMS + IsomerCMS diff --git a/src/components/Header.jsx b/src/components/Header.jsx index e18a37d55..addd759ac 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -110,7 +110,7 @@ const Header = ({ Isomer CMS logo ) : ( diff --git a/src/components/Header/AllSitesHeader.tsx b/src/components/Header/AllSitesHeader.tsx index 508f6e77a..dd93cae31 100644 --- a/src/components/Header/AllSitesHeader.tsx +++ b/src/components/Header/AllSitesHeader.tsx @@ -28,7 +28,7 @@ export const AllSitesHeader = (): JSX.Element => { Isomer CMS logo diff --git a/src/components/VerifyUserDetailsModal.jsx b/src/components/VerifyUserDetailsModal.jsx index 8ad1c59b9..60397d6fa 100644 --- a/src/components/VerifyUserDetailsModal.jsx +++ b/src/components/VerifyUserDetailsModal.jsx @@ -189,7 +189,7 @@ const VerifyUserDetailsModal = () => { <>
In order to improve security, a verified email is now required for - all users of Isomer CMS. Only .gov.sg or{" "} + all users of IsomerCMS. Only .gov.sg or{" "} whitelisted email addresses will be accepted. You must verify your email before proceeding.{" "} diff --git a/src/components/navbar/NavSection.jsx b/src/components/navbar/NavSection.jsx index e725220a2..3a254a2ec 100644 --- a/src/components/navbar/NavSection.jsx +++ b/src/components/navbar/NavSection.jsx @@ -1,3 +1,4 @@ +import { Box } from "@chakra-ui/react" import { Button, IconButton } from "@opengovsg/design-system-react" import PropTypes from "prop-types" import { useState, useRef } from "react" @@ -269,7 +270,7 @@ const NavSection = ({
)} -
+ {errors.dropdown} @@ -96,6 +96,7 @@ export const HeroDropdownSection = ({ placeholder="Dropdown option title" id={`dropdownelem-${dropdownOptionIndex}-title`} value={optionTitle} + onBlur={onChange} onChange={onChange} /> @@ -113,6 +114,7 @@ export const HeroDropdownSection = ({ placeholder="Insert /page-url or https://" id={`dropdownelem-${dropdownOptionIndex}-url`} value={optionUrl} + onBlur={onChange} onChange={onChange} /> diff --git a/src/layouts/components/Homepage/HeroHighlightSection.tsx b/src/layouts/components/Homepage/HeroHighlightSection.tsx index a9764b958..aaf027401 100644 --- a/src/layouts/components/Homepage/HeroHighlightSection.tsx +++ b/src/layouts/components/Homepage/HeroHighlightSection.tsx @@ -53,6 +53,7 @@ export const HeroHighlightSection = ({ id="section-0-hero-button" placeholder="This is a button" value={button} + onBlur={onChange} onChange={onChange} /> {/* TODO: Validate button. @@ -65,6 +66,7 @@ export const HeroHighlightSection = ({ @@ -114,6 +116,7 @@ export const HeroHighlightSection = ({ placeholder="Highlight title" id={`highlight-${highlightIndex}-title`} value={highlightTitle} + onBlur={onChange} onChange={onChange} /> @@ -131,6 +134,7 @@ export const HeroHighlightSection = ({ placeholder="Highlight description" id={`highlight-${highlightIndex}-description`} value={highlightDescription} + onBlur={onChange} onChange={onChange} /> @@ -146,6 +150,7 @@ export const HeroHighlightSection = ({ placeholder="Insert /page-url or https://" id={`highlight-${highlightIndex}-url`} value={highlightUrl} + onBlur={onChange} onChange={onChange} /> diff --git a/src/layouts/components/Homepage/InfobarBody.tsx b/src/layouts/components/Homepage/InfobarBody.tsx index 9542067e8..1a864daab 100644 --- a/src/layouts/components/Homepage/InfobarBody.tsx +++ b/src/layouts/components/Homepage/InfobarBody.tsx @@ -43,6 +43,7 @@ export const InfobarBody = ({ placeholder="This subtitle appears above the title" id={`section-${index}-infobar-subtitle`} value={subtitle} + onBlur={onChange} onChange={onChange} /> {errors.subtitle} @@ -53,6 +54,7 @@ export const InfobarBody = ({ placeholder="Your infobar title goes here" id={`section-${index}-infobar-title`} value={title} + onBlur={onChange} onChange={onChange} /> {errors.title} @@ -63,6 +65,7 @@ export const InfobarBody = ({ placeholder="This paragraph appears below the title and conveys information" id={`section-${index}-infobar-description`} value={description} + onBlur={onChange} onChange={onChange} /> {errors.description} @@ -73,6 +76,7 @@ export const InfobarBody = ({ placeholder="This is a button" id={`section-${index}-infobar-button`} value={button} + onBlur={onChange} onChange={onChange} /> {errors.button} @@ -83,6 +87,7 @@ export const InfobarBody = ({ placeholder="Insert /page-url or https://" id={`section-${index}-infobar-url`} value={url} + onBlur={onChange} onChange={onChange} /> {errors.url} diff --git a/src/layouts/components/Homepage/InfopicBody.tsx b/src/layouts/components/Homepage/InfopicBody.tsx index 8e19f234b..d9f0ca8d2 100644 --- a/src/layouts/components/Homepage/InfopicBody.tsx +++ b/src/layouts/components/Homepage/InfopicBody.tsx @@ -25,7 +25,6 @@ interface InfopicFormFields { interface InfopicBodyProps extends InfopicFormFields { index: number - onClick: () => void errors: InfopicFormFields & { image: string } image: string } @@ -33,7 +32,6 @@ interface InfopicBodyProps extends InfopicFormFields { export const InfopicBody = ({ errors, index, - onClick, title, subtitle, description, @@ -53,6 +51,7 @@ export const InfopicBody = ({ id={`section-${index}-infopic-subtitle`} value={subtitle} onChange={onChange} + onBlur={onChange} /> {errors.subtitle} @@ -63,6 +62,7 @@ export const InfopicBody = ({ id={`section-${index}-infopic-title`} value={title} onChange={onChange} + onBlur={onChange} /> {errors.title} @@ -72,6 +72,7 @@ export const InfopicBody = ({ placeholder="This paragraph appears below the title and conveys information" id={`section-${index}-infopic-description`} value={description} + onBlur={onChange} onChange={onChange} /> {errors.description} @@ -82,6 +83,7 @@ export const InfopicBody = ({ placeholder="This is a button at the bottom of the infopic" id={`section-${index}-infopic-button`} value={button} + onBlur={onChange} onChange={onChange} /> {errors.button} @@ -92,6 +94,7 @@ export const InfopicBody = ({ placeholder="Insert /page-url or https://" id={`section-${index}-infopic-url`} value={url} + onBlur={onChange} onChange={onChange} /> {errors.url} @@ -115,6 +118,7 @@ export const InfopicBody = ({ placeholder="Add a descriptive text about the image" id={`section-${index}-infopic-alt`} value={alt} + onBlur={onChange} onChange={onChange} /> {errors.alt} diff --git a/src/layouts/components/Homepage/ResourcesBody.tsx b/src/layouts/components/Homepage/ResourcesBody.tsx index d00fcdfdf..3a0c1de9a 100644 --- a/src/layouts/components/Homepage/ResourcesBody.tsx +++ b/src/layouts/components/Homepage/ResourcesBody.tsx @@ -53,6 +53,7 @@ export const ResourcesBody = ({ placeholder="This subtitle appears above the title" id={`section-${index}-resources-subtitle`} value={subtitle} + onBlur={onChange} onChange={onChange} /> {errors.subtitle} @@ -63,6 +64,7 @@ export const ResourcesBody = ({ placeholder="Your widget title goes here" id={`section-${index}-resources-title`} value={title} + onBlur={onChange} onChange={onChange} /> {errors.title} @@ -73,6 +75,7 @@ export const ResourcesBody = ({ placeholder="This button appears at the bottom of the widget" id={`section-${index}-resources-button`} value={button} + onBlur={onChange} onChange={onChange} /> {errors.button} diff --git a/src/layouts/components/NavBar/FolderMenuBody.tsx b/src/layouts/components/NavBar/FolderMenuBody.tsx index 9ea77f389..cb8755bfd 100644 --- a/src/layouts/components/NavBar/FolderMenuBody.tsx +++ b/src/layouts/components/NavBar/FolderMenuBody.tsx @@ -50,7 +50,7 @@ export const FolderMenuBody = ({ return ( - Menu Item Name + Menu item name - Menu Group Name + Menu group name Destination {errors.url} - Submenus - - Cards are displayed side by side on a desktop screen + + Submenus + + + Cards are displayed side by side on a desktop screens @@ -87,7 +89,7 @@ export const GroupMenuBody = ({ isRequired isInvalid={!!errors.sublinks[sublinkIndex].title} > - Submenu Name + Submenu name Destination { return ( - Menu Item Name + Menu item name { Destination ( const TemplateNavBar = ({ links, collectionInfo, resources }) => (