Skip to content

Commit

Permalink
feat(auth): enable email sign in anywhere but production
Browse files Browse the repository at this point in the history
  • Loading branch information
flsilva committed Nov 17, 2023
1 parent f4902c7 commit c41b584
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/auth/sign-in/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default async function SignInPage() {
<LinkedInInLogoIcon />
Continue with LinkedIn
</OAuthProviderButton>
{baseUrl === 'http://localhost:3000' && (
{baseUrl !== 'https://opentask.app' && (
<>
<div className="relative flex items-center py-6">
<div className="flex-grow border-t border-gray-200"></div>
Expand Down
4 changes: 2 additions & 2 deletions src/modules/app/projects/ProjectMutationDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export interface ProjectMutationDropdownProps {

export const ProjectMutationDropdown = ({ project }: ProjectMutationDropdownProps) => {
const router = useRouter();
const [mutationAlertDialog, setAlertDialog] = useState<React.ReactNode | null>(null);
const [alertDialog, setAlertDialog] = useState<React.ReactNode | null>(null);

const onCloseMutationDialog = () => {
setAlertDialog(null);
Expand Down Expand Up @@ -178,7 +178,7 @@ export const ProjectMutationDropdown = ({ project }: ProjectMutationDropdownProp
}
/>
</div>
{mutationAlertDialog && mutationAlertDialog}
{alertDialog}
</>
);
};

0 comments on commit c41b584

Please sign in to comment.