Skip to content

Commit 77f5b35

Browse files
committed
fix: move form end component to top
1 parent c5c244e commit 77f5b35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/FormEndPage/EndPageBlock.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const EndPageBlock = ({
8888
return 'You have successfully submitted your response.'
8989
}, [formTitle])
9090

91-
const ogpAwareness = useFeatureValue('ogp-awareness', 'none')
91+
const ogpAwareness = useFeatureValue('ogp-awareness', 'badge')
9292
const ogpAwarenessComponent = (() => {
9393
switch (ogpAwareness) {
9494
case 'banner':
@@ -102,6 +102,7 @@ export const EndPageBlock = ({
102102

103103
return (
104104
<>
105+
{ogpAwarenessComponent && <Box mb="1rem">{ogpAwarenessComponent}</Box>}
105106
<Box ref={focusRef}>
106107
<VisuallyHidden aria-live="assertive">
107108
{submittedAriaText}
@@ -115,7 +116,6 @@ export const EndPageBlock = ({
115116
</Box>
116117
) : null}
117118
</Box>
118-
{ogpAwarenessComponent && <Box mt="1rem">{ogpAwarenessComponent}</Box>}
119119
<Box mt="1rem">
120120
<Box>
121121
<Text textColor="secondary.300" textStyle="caption-2">

0 commit comments

Comments
 (0)