Admin: przycisk Wstecz na UserDetail (md+, telefon ma '<' w topbarze)
This commit is contained in:
@@ -15,7 +15,7 @@ import {
|
||||
} from 'lucide-react';
|
||||
import { useTopbar } from '../../topbar';
|
||||
import { api } from '../../api/client';
|
||||
import { Badge, Card, ConfirmDialog, ErrorText, Loading } from '../../components/ui';
|
||||
import { BackButton, Badge, Card, ConfirmDialog, ErrorText, Loading } from '../../components/ui';
|
||||
import { Avatar } from '../../components/Avatar';
|
||||
import { displayName, fmtDate, fmtVolume } from '../../lib/format';
|
||||
import {
|
||||
@@ -197,6 +197,9 @@ export default function UserDetail() {
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* md+ „Wstecz” w treści (telefon: „<” w topbarze) — jak na GymDetail i podstronach */}
|
||||
<BackButton to="/users" className="mb-4" />
|
||||
|
||||
{/* Hero: avatar + nazwa + e-mail + nick/admin/role siłowni */}
|
||||
<div className="mb-4 flex flex-wrap items-center gap-4 rounded-xl border border-line bg-(image:--card-grad) p-5 shadow-card">
|
||||
<Avatar name={name} size={56} />
|
||||
|
||||
Reference in New Issue
Block a user