💄 Standardize go back to blueprints

This commit is contained in:
Fred KISSIE
2025-10-30 00:27:27 +01:00
parent 77364488c2
commit 72c9956190
3 changed files with 11 additions and 20 deletions

View File

@@ -1167,7 +1167,7 @@
"blueprints": "Blueprints",
"blueprintsDescription": "Blueprints are declarative YAML configurations that define your resources and their settings",
"blueprintAdd": "Add Blueprint",
"blueprintGoBack": "Back to blueprints",
"blueprintGoBack": "See all Blueprints",
"blueprintCreate": "Create blueprint",
"blueprintCreateDescription2": "Follow the steps below to create and apply a new blueprint",
"blueprintDetails": "Blueprint details",

View File

@@ -47,18 +47,10 @@ export default async function BluePrintDetailPage(props: BluePrintsPageProps) {
return (
<>
<div className="flex flex-col gap-2 items-start">
<Button variant="link" asChild className="gap-1 px-0">
<Link href={`/${params.orgId}/settings/blueprints`}>
<ArrowLeft className="size-4 flex-none" />
{t("blueprintGoBack")}
</Link>
</Button>
<SettingsSectionTitle
title={t("blueprintDetails")}
description={t("blueprintDetailsDescription")}
/>
</div>
<SettingsSectionTitle
title={t("blueprintDetails")}
description={t("blueprintDetailsDescription")}
/>
<BlueprintDetailsForm blueprint={blueprint} />
</>

View File

@@ -24,17 +24,16 @@ export default async function CreateBlueprintPage(
return (
<>
<div className="flex flex-col gap-2 items-start">
<Button variant="link" asChild className="gap-1 px-0">
<Link href={`/${orgId}/settings/blueprints`}>
<ArrowLeft className="size-4 flex-none" />{" "}
{t("blueprintGoBack")}
</Link>
</Button>
<div className="flex gap-2 justify-between">
<SettingsSectionTitle
title={t("blueprintCreate")}
description={t("blueprintCreateDescription2")}
/>
<Button variant="outline" asChild>
<Link href={`/${orgId}/settings/blueprints`}>
{t("blueprintGoBack")}
</Link>
</Button>
</div>
<CreateBlueprintForm orgId={orgId} />