Skip to content

Commit

Permalink
chore: fix issues flagged by chromatic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kathleenkhy committed Feb 19, 2024
1 parent 9bd7e61 commit cc6725a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ import { Container, Flex, Stack, StackDivider } from '@chakra-ui/react'

import { FormColorTheme, FormDto } from '~shared/types/form'

import {
SubmissionData,
usePublicFormContext,
} from '~features/public-form/PublicFormContext'
import { SubmissionData } from '~features/public-form/PublicFormContext'

import { EndPageBlock } from './components/EndPageBlock'
import { FeedbackBlock, FeedbackFormInput } from './components/FeedbackBlock'
Expand All @@ -26,7 +23,6 @@ export const FormEndPage = ({
colorTheme,
...endPageProps
}: FormEndPageProps): JSX.Element => {
const { isPaymentEnabled } = usePublicFormContext()
return (
<Container w="42.5rem" maxW="100%" p={0}>
<Flex flexDir="column" align="center">
Expand All @@ -43,7 +39,6 @@ export const FormEndPage = ({
focusOnMount
{...endPageProps}
colorTheme={colorTheme}
isPaymentEnabled={isPaymentEnabled}
/>
{isFeedbackSubmitted ? null : (
<FeedbackBlock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const EndPageBlock = ({
}, [formTitle])

return (
<Container py={{ base: '1.5rem', md: '3rem' }}>
<Container>
<Box ref={focusRef}>
<VisuallyHidden aria-live="assertive">
{submittedAriaText}
Expand Down

0 comments on commit cc6725a

Please sign in to comment.