Skip to content

Commit

Permalink
Add proper height to profile layout
Browse files Browse the repository at this point in the history
  • Loading branch information
erikguntner committed May 20, 2024
1 parent c244de0 commit 1295c5f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/views/IntakeProfile/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Button, Stack} from '@mui/material';
import {Button, Stack, useTheme} from '@mui/material';
import {Link, Outlet, useParams} from 'react-router-dom';
import {Formik} from 'formik';

Expand All @@ -16,6 +16,8 @@ export type Values = {
export type InitialValues = Record<string, Values>;

export const IntakeProfile = () => {
const theme = useTheme();
const toolbarHeight = Number(theme.mixins.toolbar.minHeight);
const {profileId, groupId} = useParams();

const {data: profileData} = useGetProfileQuery(
Expand Down Expand Up @@ -68,7 +70,7 @@ export const IntakeProfile = () => {
<Stack
direction="row"
sx={{
flex: '1 1 auto',
height: `calc(100vh - ${toolbarHeight}px)`,
backgroundColor: 'grey.50',
}}
>
Expand Down

0 comments on commit 1295c5f

Please sign in to comment.