Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions apps/web/app/(authenticated)/projects/[slug]/edit/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,6 @@ export default function EditProjectPage() {
<div className="space-y-4">
<Link
href={`/projects/preview/${project.id}`}
target="_blank"
rel="noreferrer"
className="text-muted-foreground inline-flex items-center gap-1.5 text-sm hover:text-foreground"
>
<ArrowLeft className="h-3.5 w-3.5" />
Expand Down Expand Up @@ -378,11 +376,7 @@ export default function EditProjectPage() {
<ProjectInvitationsManager projectId={project.id} />
)}
<Button asChild variant="outline" size="sm">
<Link
href={`/projects/preview/${project.id}`}
target="_blank"
rel="noreferrer"
>
<Link href={`/projects/preview/${project.id}`}>
<ExternalLink className="h-3.5 w-3.5" />
Preview
</Link>
Expand Down
5 changes: 2 additions & 3 deletions apps/web/app/login/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';
import { useState, Suspense, useEffect } from 'react';
import Link from 'next/link';
import { useRouter, useSearchParams } from 'next/navigation';
import { useSearchParams } from 'next/navigation';
import { useForm } from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';
import { toast } from 'sonner';
Expand Down Expand Up @@ -104,7 +104,6 @@ function RandomProjects() {

function LoginForm() {
const [isSubmitting, setIsSubmitting] = useState(false);
const router = useRouter();
const searchParams = useSearchParams();
const { login } = useAuth();
const {
Expand All @@ -129,7 +128,7 @@ function LoginForm() {
? rawRedirect
: '/dashboard';

router.push(redirectPath);
window.location.replace(redirectPath);
} catch (error) {
toast.error(
error instanceof ApiError ? error.message : 'Unable to log in',
Expand Down
Loading