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 (
|
||||
subdomainInfo.isProjectPassport &&
|
||||
data.type === "project" &&
|
||||
"project" in data
|
||||
data.type === "group" &&
|
||||
"group" in data
|
||||
) {
|
||||
return (
|
||||
<ProjectPassport
|
||||
project={data.project}
|
||||
owner={data.owner}
|
||||
isSubdomain={true}
|
||||
/>
|
||||
<Layout>
|
||||
<div className="container mx-auto px-4 max-w-6xl">
|
||||
<GroupPassport
|
||||
group={data.group}
|
||||
projects={data.projects}
|
||||
owner={data.owner}
|
||||
/>
|
||||
</div>
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue