Skip to content

Commit

Permalink
fix: APP-353 stakeholders style (#2570)
Browse files Browse the repository at this point in the history
  • Loading branch information
r41ph authored Dec 11, 2024
1 parent d0457d3 commit 8608078
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web-components/src/components/user/UserInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { isValidElement } from 'react';
import { Link, SxProps } from '@mui/material';
import Grid, { GridDirection } from '@mui/material/Grid';
import Grid, { GridDirection, GridProps } from '@mui/material/Grid';

import { headerFontFamily, Theme } from '../../theme/muiTheme';
import { formatDate } from '../../utils/format';
Expand Down Expand Up @@ -44,6 +44,7 @@ interface UserInfoProps {
timestamp?: string;
};
linkComponent?: LinkComponentProp;
alignItems?: GridProps['alignItems'];
}
export default function UserInfo({
user,
Expand All @@ -56,6 +57,7 @@ export default function UserInfo({
nameHasPadding = true,
classNames,
linkComponent: LinkComponent = Link,
alignItems = 'center',
}: UserInfoProps): JSX.Element {
const sizeVariant = getSizeVariant(size);
const mobileSizeVariant = getSizeVariant(getMobileSize(size));
Expand Down Expand Up @@ -90,7 +92,7 @@ export default function UserInfo({
direction={direction}
wrap="nowrap"
sx={sx}
alignItems="center"
alignItems={alignItems}
>
<Grid item>
<UserAvatar
Expand Down
1 change: 1 addition & 0 deletions web-components/src/components/user/UserInfoWithTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default function UserInfoWithTitle({
border={border}
titleComponent="subtitle"
linkComponent={linkComponent}
alignItems={'start'}
/>
)}
</Box>
Expand Down

0 comments on commit 8608078

Please sign in to comment.