Add team preference to use logo for branding (#4285)

* feat: add team preference to use logo for branding

* fix: allow on cloud version too
This commit is contained in:
Apoorv Mishra
2022-10-19 10:01:24 +05:30
committed by GitHub
parent 98f997387c
commit bb21fa725c
11 changed files with 27 additions and 17 deletions

View File

@@ -57,6 +57,22 @@ function Features() {
/>
</SettingRow>
)}
{team.avatarUrl && (
<SettingRow
name="publicBranding"
label={t("Public branding")}
description={t(
"Show your teams logo on public pages like login and shared documents."
)}
>
<Switch
id="publicBranding"
name="publicBranding"
checked={!!team.preferences?.publicBranding}
onChange={handlePreferenceChange}
/>
</SettingRow>
)}
</Scene>
);
}