app -> issues

This commit is contained in:
Oliver Bryan
2026-01-21 18:52:31 +00:00
parent 653f617d66
commit 68c1c2c0e5
4 changed files with 15 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ import { ResizablePanel, ResizablePanelGroup, ResizableSeparator } from "@/compo
import { BREATHING_ROOM } from "@/lib/layout";
import { useIssues, useOrganisations, useProjects, useSelectedIssue } from "@/lib/query/hooks";
export default function App() {
export default function Issues() {
const {
selectedOrganisationId,
selectedProjectId,

View File

@@ -19,7 +19,7 @@ export default function Landing() {
<h1 className="text-xl font-basteleur font-400">Welcome back {user.name.split(" ")[0]}!</h1>
)}
<Button asChild variant="outline" size="sm">
<Link to="/app">Open app</Link>
<Link to="/issues">Open app</Link>
</Button>
</>
) : (
@@ -44,7 +44,7 @@ export default function Landing() {
<div className="flex flex-col items-center gap-8">
{!isLoading && user ? (
<Button asChild size="lg">
<Link to="/app">Open app</Link>
<Link to="/issues">Open app</Link>
</Button>
) : (
<Button asChild size="lg">

View File

@@ -11,7 +11,7 @@ export default function Login() {
useEffect(() => {
if (!isLoading && user) {
const next = searchParams.get("next") || "/app";
const next = searchParams.get("next") || "/issues";
navigate(next, { replace: true });
}
}, [user, isLoading, navigate, searchParams]);