mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-06 18:56:39 +00:00
fix(newt-install): conditionally display Kubernetes installation info
Signed-off-by: Marc Schäfer <git@marcschaeferger.de>
This commit is contained in:
@@ -210,6 +210,7 @@ WantedBy=default.target`
|
|||||||
|
|
||||||
<div className="pt-4">
|
<div className="pt-4">
|
||||||
<p className="font-bold mb-3">{t("commands")}</p>
|
<p className="font-bold mb-3">{t("commands")}</p>
|
||||||
|
{platform === "kubernetes" && (
|
||||||
<p className="text-sm text-muted-foreground mb-3">
|
<p className="text-sm text-muted-foreground mb-3">
|
||||||
For more and up to date Kubernetes installation
|
For more and up to date Kubernetes installation
|
||||||
information, see{" "}
|
information, see{" "}
|
||||||
@@ -223,6 +224,7 @@ WantedBy=default.target`
|
|||||||
</a>
|
</a>
|
||||||
.
|
.
|
||||||
</p>
|
</p>
|
||||||
|
)}
|
||||||
<div className="mt-2 space-y-3">
|
<div className="mt-2 space-y-3">
|
||||||
{commands.map((item, index) => {
|
{commands.map((item, index) => {
|
||||||
const commandText =
|
const commandText =
|
||||||
@@ -232,8 +234,10 @@ WantedBy=default.target`
|
|||||||
? undefined
|
? undefined
|
||||||
: item.title;
|
: item.title;
|
||||||
|
|
||||||
|
const key = `${title ?? ""}::${commandText}`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div key={index}>
|
<div key={key}>
|
||||||
{title && (
|
{title && (
|
||||||
<p className="text-sm font-medium mb-1.5">
|
<p className="text-sm font-medium mb-1.5">
|
||||||
{title}
|
{title}
|
||||||
|
|||||||
Reference in New Issue
Block a user