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