Add home page link to header
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { useEffect } from "react";
|
||||
import { Outlet, useNavigate } from "react-router-dom";
|
||||
import { Link, Outlet, useNavigate } from "react-router-dom";
|
||||
import { client } from "../client";
|
||||
import { useStore } from "../store";
|
||||
import { Button } from "../styled/Button";
|
||||
@@ -49,9 +49,14 @@ export function Root() {
|
||||
<div className="w-full h-full overflow-hidden flex flex-col items-stretch">
|
||||
<div className="flex p-4 justify-between items-baseline">
|
||||
<div>
|
||||
Użytkownik: {user.username} (<span className="font-mono text-sm">{user.userId}</span>)
|
||||
<Link className="underline" to="/">
|
||||
Repozytorium muzyczne
|
||||
</Link>
|
||||
</div>
|
||||
<div className="flex items-baseline gap-4">
|
||||
<div>
|
||||
{user.username}
|
||||
</div>
|
||||
<Button type="button" onClick={onLogoutClick}>
|
||||
Wyloguj się
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user