Skip to content

Commit

Permalink
feature/testing github auth
Browse files Browse the repository at this point in the history
  • Loading branch information
psiddharthdesign committed Jul 22, 2024
1 parent eb33384 commit df290a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/(dynamic-pages)/(login-pages)/login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export function Login({
</CardHeader>
<CardContent className="space-y-2 p-0">
<RenderProviders
providers={['google', 'github', 'twitter']}
providers={['github']}
isLoading={providerMutation.isLoading}
onProviderLoginRequested={providerMutation.mutate}
/>
Expand Down
5 changes: 2 additions & 3 deletions src/components/Auth/RenderProviders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function capitalize(word: string) {
return word.charAt(0).toUpperCase() + lower.slice(1);
}

const isDemo = true;
const isDemo = false;

export const RenderProviders = ({
providers,
Expand All @@ -31,11 +31,10 @@ export const RenderProviders = ({
const AuthIcon = SocialIcons[provider];
const component = (
<Button
variant="default"
variant="outline"
size="default"
disabled={isLoading || isDemo}
onClick={() => onProviderLoginRequested(provider)}
className="bg-white dark:bg-white text-black dark:text-black border h-10 border-gray-400 dark:border-gray-600 rounded-lg"
>
<div className="mr-2">
<AuthIcon />
Expand Down

0 comments on commit df290a6

Please sign in to comment.