Update & format
This commit is contained in:
@@ -27,7 +27,7 @@ import {
|
||||
import { toast } from 'sonner';
|
||||
import {
|
||||
GibsAuthSignInButton,
|
||||
MicrosoftSignInButton
|
||||
MicrosoftSignInButton,
|
||||
} from '@/components/layout/auth/buttons';
|
||||
import { PASSWORD_MIN, PASSWORD_MAX, PASSWORD_REGEX } from '@/lib/types';
|
||||
|
||||
|
@@ -8,7 +8,7 @@ type Props = {
|
||||
buttonProps?: Omit<ComponentProps<'button'>, 'onClick'> &
|
||||
VariantProps<typeof buttonVariants> & {
|
||||
asChild?: boolean;
|
||||
},
|
||||
};
|
||||
type?: 'signIn' | 'signUp';
|
||||
};
|
||||
|
||||
@@ -32,9 +32,7 @@ export const GibsAuthSignInButton = ({
|
||||
width={30}
|
||||
height={30}
|
||||
/>
|
||||
<p>
|
||||
{type === 'signIn' ? 'Sign In' : 'Sign Up'} with Gib's Auth
|
||||
</p>
|
||||
<p>{type === 'signIn' ? 'Sign In' : 'Sign Up'} with Gib's Auth</p>
|
||||
</div>
|
||||
</Button>
|
||||
);
|
||||
|
@@ -7,7 +7,7 @@ type Props = {
|
||||
buttonProps?: Omit<ComponentProps<'button'>, 'onClick'> &
|
||||
VariantProps<typeof buttonVariants> & {
|
||||
asChild?: boolean;
|
||||
},
|
||||
};
|
||||
type?: 'signIn' | 'signUp';
|
||||
};
|
||||
|
||||
@@ -26,15 +26,13 @@ export const MicrosoftSignInButton = ({
|
||||
<div className='flex flex-row my-auto space-x-2'>
|
||||
<div className='flex flex-row my-auto'>
|
||||
<svg className='scale-150' viewBox='0 0 23 23'>
|
||||
<path fill='#f35325' d='M1 1h10v10H1z'/>
|
||||
<path fill='#81bc06' d='M12 1h10v10H12z'/>
|
||||
<path fill='#05a6f0' d='M1 12h10v10H1z'/>
|
||||
<path fill='#ffba08' d='M12 12h10v10H12z'/>
|
||||
<path fill='#f35325' d='M1 1h10v10H1z' />
|
||||
<path fill='#81bc06' d='M12 1h10v10H12z' />
|
||||
<path fill='#05a6f0' d='M1 12h10v10H1z' />
|
||||
<path fill='#ffba08' d='M12 12h10v10H12z' />
|
||||
</svg>
|
||||
</div>
|
||||
<p>
|
||||
{type === 'signIn' ? 'Sign In' : 'Sign Up'} with Microsoft
|
||||
</p>
|
||||
<p>{type === 'signIn' ? 'Sign In' : 'Sign Up'} with Microsoft</p>
|
||||
</div>
|
||||
</Button>
|
||||
);
|
||||
|
Reference in New Issue
Block a user