style: harmonize back link style on project subpages

This commit is contained in:
thibaud-lclr 2026-04-20 08:30:00 +02:00
parent 58f784c59c
commit 8536dedc9e
4 changed files with 16 additions and 28 deletions

View file

@ -147,16 +147,13 @@ export default function ProjectGraylog() {
return ( return (
<div className="space-y-6 p-8"> <div className="space-y-6 p-8">
<div className="flex items-center justify-between"> <div>
<h2 className="text-xl font-bold">Graylog</h2>
{projectId && ( {projectId && (
<Link <Link to={`/projects/${projectId}`} className="mb-1 inline-flex text-sm text-blue-600 hover:underline">
to={`/projects/${projectId}`} Back
className="rounded bg-gray-200 px-4 py-2 text-sm text-gray-700 hover:bg-gray-300"
>
Retour
</Link> </Link>
)} )}
<h2 className="text-xl font-bold">Graylog</h2>
</div> </div>
{error && ( {error && (

View file

@ -304,16 +304,13 @@ export default function ProjectLiveAgent() {
return ( return (
<div className="p-8 space-y-6"> <div className="p-8 space-y-6">
<div className="flex items-center justify-between gap-3"> <div>
<h2 className="text-xl font-bold">Live agent</h2>
{projectId && ( {projectId && (
<Link <Link to={`/projects/${projectId}`} className="mb-1 inline-flex text-sm text-blue-600 hover:underline">
to={`/projects/${projectId}`} Back
className="rounded bg-gray-200 px-4 py-2 text-sm text-gray-700 hover:bg-gray-300"
>
Retour
</Link> </Link>
)} )}
<h2 className="text-xl font-bold">Live agent</h2>
</div> </div>
{error && ( {error && (

View file

@ -43,16 +43,13 @@ export default function ProjectModules() {
return ( return (
<div className="p-8"> <div className="p-8">
<div className="mb-6 flex items-center justify-between gap-3"> <div className="mb-6">
<h2 className="text-xl font-bold">Modules du projet</h2>
{projectId && ( {projectId && (
<Link <Link to={`/projects/${projectId}`} className="mb-1 inline-flex text-sm text-blue-600 hover:underline">
to={`/projects/${projectId}`} Back
className="rounded bg-gray-200 px-4 py-2 text-sm text-gray-700 hover:bg-gray-300"
>
Retour
</Link> </Link>
)} )}
<h2 className="text-xl font-bold">Modules du projet</h2>
</div> </div>
{error && ( {error && (

View file

@ -153,16 +153,13 @@ export default function ProjectTasks() {
return ( return (
<div className="space-y-6 p-8"> <div className="space-y-6 p-8">
<div className="flex items-center justify-between gap-3"> <div>
<h2 className="text-xl font-bold">Tâches agent</h2>
{projectId && ( {projectId && (
<Link <Link to={`/projects/${projectId}`} className="mb-1 inline-flex text-sm text-blue-600 hover:underline">
to={`/projects/${projectId}`} Back
className="rounded bg-gray-200 px-4 py-2 text-sm text-gray-700 hover:bg-gray-300"
>
Retour
</Link> </Link>
)} )}
<h2 className="text-xl font-bold">Tâches agent</h2>
</div> </div>
{error && ( {error && (