Update & format

This commit is contained in:
2025-09-19 18:12:55 -05:00
parent 45d2461781
commit f93b39d7a9
11 changed files with 47 additions and 51 deletions

View File

@@ -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';

View File

@@ -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&apos;s Auth
</p>
<p>{type === 'signIn' ? 'Sign In' : 'Sign Up'} with Gib&apos;s Auth</p>
</div>
</Button>
);

View File

@@ -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>
);