Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: switch advertising for checkpoint to mrf #7191

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading