1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-05 17:53:12 +02:00

chore: remove unnecessary function

This commit is contained in:
Thomas Heartman 2024-07-23 09:37:16 +02:00
parent 9530f49117
commit d5c5ba183d
No known key found for this signature in database
GPG Key ID: BD1F880DAED1EE78

View File

@ -1,4 +1,4 @@
import { type Theme, styled } from '@mui/material'; import { styled } from '@mui/material';
import { GroupCardAvatars } from 'component/admin/groups/GroupsList/GroupCard/GroupCardAvatars/NewGroupCardAvatars'; import { GroupCardAvatars } from 'component/admin/groups/GroupsList/GroupCard/GroupCardAvatars/NewGroupCardAvatars';
import { UserAvatar } from 'component/common/UserAvatar/UserAvatar'; import { UserAvatar } from 'component/common/UserAvatar/UserAvatar';
import type { IFeatureToggle } from 'interfaces/featureToggle'; import type { IFeatureToggle } from 'interfaces/featureToggle';
@ -11,15 +11,13 @@ type LastModifiedByProps = {
imageUrl: string; imageUrl: string;
}; };
const gap = (theme: Theme) => theme.spacing(1);
const LastModifiedByContainer = styled('div')(({ theme }) => ({ const LastModifiedByContainer = styled('div')(({ theme }) => ({
display: 'grid', display: 'grid',
gridTemplateAreas: ` gridTemplateAreas: `
'description description' 'description description'
'avatar link' 'avatar link'
`, `,
gap: gap(theme), gap: theme.spacing(1),
alignItems: 'center', alignItems: 'center',
height: 'min-content', height: 'min-content',
fontSize: theme.typography.body2.fontSize, fontSize: theme.typography.body2.fontSize,
@ -54,7 +52,7 @@ type CollaboratorListProps = {
const CollaboratorListContainer = styled('div')(({ theme }) => ({ const CollaboratorListContainer = styled('div')(({ theme }) => ({
display: 'flex', display: 'flex',
flexFlow: 'column', flexFlow: 'column',
gap: gap(theme), gap: theme.spacing(1),
alignItems: 'flex-start', alignItems: 'flex-start',
height: 'min-content', height: 'min-content',
fontSize: theme.typography.body2.fontSize, fontSize: theme.typography.body2.fontSize,