refacto(auth): improve type + remove complexity (#9949)

- Improve type
- Remove unnecessary code
- Fix the issue that prevents the usage of invitations when a user signs
in with social media.
- Add Microsoft icon for sso list page
This commit is contained in:
Antoine Moreaux
2025-01-31 15:39:45 +01:00
committed by GitHub
parent 591301f7ce
commit b801307d92
11 changed files with 120 additions and 125 deletions

View File

@ -1,6 +1,6 @@
import { useTheme } from '@emotion/react';
import IconMicrosoftOutlookRaw from '../assets/microsoft-outlook.svg?react';
import IconMicrosoftRaw from '../assets/microsoft.svg?react';
interface IconMicrosoftOutlookProps {
size?: number;
@ -10,5 +10,5 @@ export const IconMicrosoftOutlook = (props: IconMicrosoftOutlookProps) => {
const theme = useTheme();
const size = props.size ?? theme.icon.size.lg;
return <IconMicrosoftOutlookRaw height={size} width={size} />;
return <IconMicrosoftRaw height={size} width={size} />;
};