chore: update usages of the customStyles to use classes instead

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-03-12 14:08:44 +01:00
parent e70464afca
commit ab185c688a
6 changed files with 125 additions and 87 deletions
@@ -49,19 +49,25 @@ import {
} from '../../../../helpers/helpers';
import { EntityRefLink } from '@backstage/plugin-catalog-react';
const useStyles = makeStyles((theme: Theme) =>
createStyles({
card: {
border: `1px solid ${theme.palette.divider}`,
boxShadow: theme.shadows[2],
borderRadius: '4px',
overflow: 'visible',
position: 'relative',
margin: theme.spacing(4, 1, 1),
flex: '1',
minWidth: '0px',
},
}),
const useStyles = makeStyles(
(theme: Theme) =>
createStyles({
card: {
border: `1px solid ${theme.palette.divider}`,
boxShadow: theme.shadows[2],
borderRadius: '4px',
overflow: 'visible',
position: 'relative',
margin: theme.spacing(4, 1, 1),
flex: '1',
minWidth: '0px',
},
avatar: {
position: 'absolute',
top: '-2rem',
},
}),
{ name: 'MembersListCardComponent' },
);
const MemberComponent = (props: { member: UserEntity }) => {
@@ -84,10 +90,7 @@ const MemberComponent = (props: { member: UserEntity }) => {
<Avatar
displayName={displayName}
picture={profile?.picture}
customStyles={{
position: 'absolute',
top: '-2rem',
}}
classes={classes}
/>
<Box
pt={2}