mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-10-31 14:15:50 +00:00 
			
		
		
		
	refactor: remove microsoft icon
This commit is contained in:
		| @@ -1,18 +0,0 @@ | |||||||
| import type { SVGProps } from "react"; |  | ||||||
|  |  | ||||||
| export function MicrosoftIcon(props: SVGProps<SVGSVGElement>) { |  | ||||||
|   return ( |  | ||||||
|     <svg |  | ||||||
|       xmlns="http://www.w3.org/2000/svg" |  | ||||||
|       width={256} |  | ||||||
|       height={256} |  | ||||||
|       viewBox="0 0 256 256" |  | ||||||
|       {...props} |  | ||||||
|     > |  | ||||||
|       <path fill="#f1511b" d="M121.666 121.666H0V0h121.666z"></path> |  | ||||||
|       <path fill="#80cc28" d="M256 121.666H134.335V0H256z"></path> |  | ||||||
|       <path fill="#00adef" d="M121.663 256.002H0V134.336h121.663z"></path> |  | ||||||
|       <path fill="#fbbc09" d="M256 256.002H134.335V134.336H256z"></path> |  | ||||||
|     </svg> |  | ||||||
|   ); |  | ||||||
| } |  | ||||||
| @@ -17,7 +17,6 @@ import { useUserContext } from "../context/user-context"; | |||||||
| import { Navigate } from "react-router"; | import { Navigate } from "react-router"; | ||||||
| import { Layout } from "../components/layouts/layout"; | import { Layout } from "../components/layouts/layout"; | ||||||
| import { GoogleIcon } from "../icons/google"; | import { GoogleIcon } from "../icons/google"; | ||||||
| import { MicrosoftIcon } from "../icons/microsoft"; |  | ||||||
| import { GithubIcon } from "../icons/github"; | import { GithubIcon } from "../icons/github"; | ||||||
|  |  | ||||||
| export const LoginPage = () => { | export const LoginPage = () => { | ||||||
| @@ -113,21 +112,6 @@ export const LoginPage = () => { | |||||||
|               </Button> |               </Button> | ||||||
|             </Grid.Col> |             </Grid.Col> | ||||||
|           )} |           )} | ||||||
|           {configuredProviders.includes("microsoft") && ( |  | ||||||
|             <Grid.Col span="content"> |  | ||||||
|               <Button |  | ||||||
|                 radius="xl" |  | ||||||
|                 leftSection={ |  | ||||||
|                   <MicrosoftIcon style={{ width: 14, height: 14 }} /> |  | ||||||
|                 } |  | ||||||
|                 variant="default" |  | ||||||
|                 onClick={() => loginOAuthMutation.mutate("microsoft")} |  | ||||||
|                 loading={loginOAuthMutation.isLoading} |  | ||||||
|               > |  | ||||||
|                 Microsoft |  | ||||||
|               </Button> |  | ||||||
|             </Grid.Col> |  | ||||||
|           )} |  | ||||||
|           {configuredProviders.includes("github") && ( |           {configuredProviders.includes("github") && ( | ||||||
|             <Grid.Col span="content"> |             <Grid.Col span="content"> | ||||||
|               <Button |               <Button | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Stavros
					Stavros