Add group passport rendering to SubdomainPassport
cgen-34f680806f7f4396be26c3c461a57eea
This commit is contained in:
parent
2db2e07419
commit
ba2b8bbdf3
1 changed files with 12 additions and 8 deletions
|
|
@ -190,18 +190,22 @@ const SubdomainPassport = () => {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Render project passport
|
// Render group passport
|
||||||
if (
|
if (
|
||||||
subdomainInfo.isProjectPassport &&
|
subdomainInfo.isProjectPassport &&
|
||||||
data.type === "project" &&
|
data.type === "group" &&
|
||||||
"project" in data
|
"group" in data
|
||||||
) {
|
) {
|
||||||
return (
|
return (
|
||||||
<ProjectPassport
|
<Layout>
|
||||||
project={data.project}
|
<div className="container mx-auto px-4 max-w-6xl">
|
||||||
owner={data.owner}
|
<GroupPassport
|
||||||
isSubdomain={true}
|
group={data.group}
|
||||||
/>
|
projects={data.projects}
|
||||||
|
owner={data.owner}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</Layout>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue