mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
app -> issues
This commit is contained in:
@@ -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,
|
||||
@@ -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">
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user