diff --git a/src/app/components/RoundedBackground/RoundedBackground.tsx b/src/app/components/RoundedBackground/RoundedBackground.tsx new file mode 100644 index 0000000..a3e230e --- /dev/null +++ b/src/app/components/RoundedBackground/RoundedBackground.tsx @@ -0,0 +1,23 @@ +import classNames from 'classnames'; + +interface RoundedBackgroundProps extends React.ComponentProps<'div'> { + children: React.ReactNode; +} + +export const RoundedBackground = ({ + children, + className, + ...props +}: RoundedBackgroundProps) => { + return ( +
+ {children} +
+ ); +}; diff --git a/src/app/engage-with-us/page.tsx b/src/app/engage-with-us/page.tsx index 8bb1d79..c6f33d4 100644 --- a/src/app/engage-with-us/page.tsx +++ b/src/app/engage-with-us/page.tsx @@ -9,7 +9,7 @@ import { } from '@trussworks/react-uswds'; import { ContentContainer } from '../components/ContentContainer/ContentContainer'; import { useHeroInit } from '../hooks/useHeroInit'; -import classNames from 'classnames'; +import { RoundedBackground } from '../components/RoundedBackground/RoundedBackground'; const EngageWithUs = () => { useHeroInit({ @@ -39,7 +39,7 @@ const EngageWithUs = () => { ); -} +}; const Left = () => { return ( @@ -121,28 +121,6 @@ const Left = () => { ); -} - -interface RoundedBackgroundProps extends React.ComponentProps<'div'> { - children: React.ReactNode; -} - -const RoundedBackground = ({ - children, - className, - ...props -}: RoundedBackgroundProps) => { - return ( -
- {children} -
- ); }; const Right = () => {