Update frontend/src/components/AppHeader.jsx
Browse files
frontend/src/components/AppHeader.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
// frontend/src/components/AppHeader.jsx
|
| 2 |
import React from "react";
|
| 3 |
-
import dojoLogo from "/dojo-logo.png"; //
|
| 4 |
|
| 5 |
export default function AppHeader({ title, subtitle, right }) {
|
| 6 |
return (
|
|
@@ -9,8 +9,8 @@ export default function AppHeader({ title, subtitle, right }) {
|
|
| 9 |
<div className="flex items-center gap-3 min-w-0">
|
| 10 |
<img
|
| 11 |
src={dojoLogo}
|
| 12 |
-
alt="
|
| 13 |
-
className="h-8 w-8 rounded-full border border-slate-200
|
| 14 |
/>
|
| 15 |
<div className="min-w-0">
|
| 16 |
<div className="text-sm font-semibold tracking-tight truncate">
|
|
@@ -23,7 +23,6 @@ export default function AppHeader({ title, subtitle, right }) {
|
|
| 23 |
)}
|
| 24 |
</div>
|
| 25 |
</div>
|
| 26 |
-
|
| 27 |
{right && (
|
| 28 |
<div className="flex items-center gap-3 shrink-0">
|
| 29 |
{right}
|
|
|
|
| 1 |
// frontend/src/components/AppHeader.jsx
|
| 2 |
import React from "react";
|
| 3 |
+
import dojoLogo from "../assets/dojo-logo.png"; // bundled via Vite
|
| 4 |
|
| 5 |
export default function AppHeader({ title, subtitle, right }) {
|
| 6 |
return (
|
|
|
|
| 9 |
<div className="flex items-center gap-3 min-w-0">
|
| 10 |
<img
|
| 11 |
src={dojoLogo}
|
| 12 |
+
alt="Dojo logo"
|
| 13 |
+
className="h-8 w-8 rounded-full border border-slate-200 bg-white object-cover"
|
| 14 |
/>
|
| 15 |
<div className="min-w-0">
|
| 16 |
<div className="text-sm font-semibold tracking-tight truncate">
|
|
|
|
| 23 |
)}
|
| 24 |
</div>
|
| 25 |
</div>
|
|
|
|
| 26 |
{right && (
|
| 27 |
<div className="flex items-center gap-3 shrink-0">
|
| 28 |
{right}
|