Skip to content

Commit 4b1711d

Browse files
committed
feat: use navigation
1 parent 7f91847 commit 4b1711d

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

frontend/app/login/login.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
import { NavLink } from "react-router";
2+
13
export function Login() {
24
return (
35
<div>
46
<h1>Welcome to the App!</h1>
57
<p>This is a simple React Router application.</p>
8+
<NavLink to="/app/app">Application</NavLink>
69
</div>
710
);
811
}

frontend/app/welcome/welcome.tsx

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { NavLink } from "react-router";
12
import logoDark from "./logo-dark.svg";
23
import logoLight from "./logo-light.svg";
34

@@ -25,19 +26,7 @@ export function Welcome() {
2526
What&apos;s next?
2627
</p>
2728
<ul>
28-
{resources.map(({ href, text, icon }) => (
29-
<li key={href}>
30-
<a
31-
className="group flex items-center gap-3 self-stretch p-3 leading-normal text-blue-700 hover:underline dark:text-blue-500"
32-
href={href}
33-
target="_blank"
34-
rel="noreferrer"
35-
>
36-
{icon}
37-
{text}
38-
</a>
39-
</li>
40-
))}
29+
<NavLink to="/">Login</NavLink>
4130
</ul>
4231
</nav>
4332
</div>

0 commit comments

Comments
 (0)