fix: unpublished org/team avatar and i18n (#11429)

* fix: unpublished org/team avatar and i18n

* Fixing e2e
This commit is contained in:
Leo Giovanetti authored and GitHub committed 2023-09-20 01:45:39 +05:30
1 parent 64850b54f0
commit bc89fe00ea
3 files changed
+16 -11

No files matched your search

@@ -13,13 +13,17 @@ export function UnpublishedEntity(props: UnpublishedEntityProps) {
return (
<div className="m-8 flex items-center justify-center">
<EmptyScreen
avatar={<Avatar alt={slug ?? ""} imageSrc={`/team/${slug}/avatar.png`} size="lg" />}
avatar={
<Avatar
alt={slug ?? ""}
imageSrc={props.orgSlug ? `/org/${slug}/avatar.png` : `/team/${slug}/avatar.png`}
size="lg"
/>
}
headline={t("team_is_unpublished", {
team: props.name,
})}
description={t("team_is_unpublished_description", {
entity: props.orgSlug ? t("organization").toLowerCase() : t("team").toLowerCase(),
})}
description={t(`${props.orgSlug ? "org" : "team"}_is_unpublished_description`)}
/>
</div>
);