Skip to content
Extraits de code Groupes Projets

"feature/HIR-10" : Gestion des Evénement | Interfaces

Ouvert mohamedlemine.telmoudy a demandé de fusionner feature/HIR-10 vers develop
Comparer et Afficher la dernière version
1 fichier
+ 5
2
Préférences
Navigateur de fichiers
Comparer les modifications
@@ -61,7 +61,10 @@ const RoleTag = styled(Typography)<RoleTagProps>`
color: ${({ isHost, theme }) => isHost ? theme.palette.primary.main : theme.palette.text.secondary};
`;
// Define a type for the Label's props
interface LabelProps {
enabled: boolean;
}
const Username = styled(Typography)`
font-weight: bold;
font-size: 14px;
@@ -78,7 +81,7 @@ const PermissionSwitch = styled(Box)`
width: 100%;
`;
const Label = styled(Typography)`
const Label = styled(Typography)<LabelProps>`
font-size: 14px;
color: ${({ enabled, theme }) => enabled ? theme.palette.success.main : theme.palette.error.main};
`;