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:
@ -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} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user