diff --git a/src/common/layout/optima/page/OptimaAppPageHeading.tsx b/src/common/layout/optima/page/OptimaAppPageHeading.tsx index 5587d2fe2..6f2474c6e 100644 --- a/src/common/layout/optima/page/OptimaAppPageHeading.tsx +++ b/src/common/layout/optima/page/OptimaAppPageHeading.tsx @@ -2,6 +2,30 @@ import * as React from 'react'; import { Box, ListDivider, Typography } from '@mui/joy'; +import { useIsMobile } from '~/common/components/useMatchMedia'; + + +const _styles = { + root: { + mb: 2.25, + }, + title: { + textAlign: 'start', + }, + accentedTagline: { + textAlign: 'start', + mt: 0.75, + }, + tagline: { + color: 'text.secondary', + textAlign: 'start', + mt: 0.75, + }, + divisor: { + mt: 2.25, + }, +}; + export function OptimaAppPageHeading(props: { title: React.ReactNode; @@ -11,15 +35,19 @@ export function OptimaAppPageHeading(props: { endDecorator?: React.ReactNode; noDivider?: boolean; }) { + + // external state + const isMobile = useIsMobile(); + return ( - {!!props.title && + {!!props.title && {props.title} } - {!!props.tagline && + {!!props.tagline && {props.tagline} } - {!props.noDivider && } + {!props.noDivider && } ); } \ No newline at end of file