Skip to content

Commit

Permalink
Update FiscalCodeScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnplb committed Oct 15, 2024
1 parent 2b493bb commit ec57473
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ts/components/ui/IOScrollViewWithLargeHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type Props = WithTestID<
ignoreSafeAreaMargin?: ComponentProps<
typeof HeaderSecondLevel
>["ignoreSafeAreaMargin"];
includeContentMargins?: boolean;
headerActionsProp?: HeaderActionsProps;
canGoback?: boolean;
excludeEndContentMargin?: boolean;
Expand All @@ -66,6 +67,7 @@ export const IOScrollViewWithLargeHeader = forwardRef<View, Props>(
contextualHelpMarkdown,
faqCategories,
ignoreSafeAreaMargin = false,
includeContentMargins = false,
headerActionsProp = {},
excludeEndContentMargin,
testID
Expand Down Expand Up @@ -146,7 +148,11 @@ export const IOScrollViewWithLargeHeader = forwardRef<View, Props>(
{children && (
<>
<VSpacer size={16} />
{children}
{includeContentMargins ? (
<ContentWrapper>{children}</ContentWrapper>
) : (
children
)}
</>
)}
</IOScrollView>
Expand Down

0 comments on commit ec57473

Please sign in to comment.