Skip to content

Commit

Permalink
chore: switch advertising for checkpoint to mrf (#7191)
Browse files Browse the repository at this point in the history
  • Loading branch information
justynoh authored Mar 25, 2024
1 parent 7f735f0 commit 7510655
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion frontend/src/constants/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ export const LANDING_PAGE_EXAMPLE_FORMS = [

export const OGP_ALL_PRODUCTS = 'https://www.open.gov.sg/products/overview'
export const OGP_POSTMAN = 'https://postman.gov.sg'
export const OGP_CHECKPOINT = 'https://checkpoint.gov.sg'
export const OGP_FORMSG_COLLATE = 'https://collate.form.gov.sg'
export const OGP_SGID = 'https://go.gov.sg/sgid-formsg'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Flex, FormControl, Icon } from '@chakra-ui/react'
import { get, isEmpty, isEqual } from 'lodash'
import isEmail from 'validator/lib/isEmail'

import { GUIDE_PREVENT_EMAIL_BOUNCE, OGP_CHECKPOINT } from '~constants/links'
import { GUIDE_FORM_MRF, GUIDE_PREVENT_EMAIL_BOUNCE } from '~constants/links'
import { useMdComponents } from '~hooks/useMdComponents'
import { ADMIN_EMAIL_VALIDATION_RULES } from '~utils/formValidation'
import FormErrorMessage from '~components/FormControl/FormErrorMessage'
Expand Down Expand Up @@ -52,7 +52,7 @@ export const EmailFormSection = ({

return (
<>
<CheckpointAdvertisingInfobox />
<MRFAdvertisingInfobox />
<FormProvider {...formMethods}>
<FormControl isInvalid={!isEmpty(errors)}>
<FormLabel
Expand All @@ -70,15 +70,15 @@ export const EmailFormSection = ({
)
}

const CheckpointAdvertisingInfobox = () => {
const MRFAdvertisingInfobox = () => {
const mdComponents = useMdComponents()

return (
<Flex bg="primary.100" p="1rem">
<Icon as={BiBulb} color="primary.500" fontSize="1.5rem" mr="0.5rem" />
<MarkdownText
components={mdComponents}
>{`Require routing and approval? [Try using Checkpoint to set up an approval workflow](${OGP_CHECKPOINT})`}</MarkdownText>
>{`Require routing and approval? [Check out our new feature: Multi-respondent forms!](${GUIDE_FORM_MRF})`}</MarkdownText>
</Flex>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export const FormResponseOptions = forwardRef<
<Tile.Subtitle>Receive responses in your inbox</Tile.Subtitle>
<OptionDescription
listItems={[
'Supported by Checkpoint, an approval workflow tool',
'Attachments: up to 7MB per form',
'Up to Restricted and Sensitive (High) data',
]}
Expand Down

0 comments on commit 7510655

Please sign in to comment.