fix: add case for non-entitled logo url (#5580)

This was missing from my prior contribution, which
would lead any user to believe they could customize the logo.
This commit is contained in:
Kyle Carberry
2023-01-04 21:39:54 +00:00
committed by GitHub
parent 0dba2defd1
commit c51b5a05db
@@ -115,8 +115,13 @@ const AppearanceSettingsPage: React.FC = () => {
<Fieldset
title="Logo URL"
validation="We recommend a transparent image with 3:1 aspect ratio."
validation={
isEntitled
? "We recommend a transparent image with 3:1 aspect ratio."
: "This is an Enterprise only feature."
}
onSubmit={logoForm.handleSubmit}
button={!isEntitled && <Button disabled>Submit</Button>}
>
<p>
Specify a custom URL for your logo to be displayed in the top left
@@ -127,6 +132,7 @@ const AppearanceSettingsPage: React.FC = () => {
defaultValue={appearance.logo_url}
fullWidth
placeholder="Leave empty to display the Coder logo."
disabled={!isEntitled}
InputProps={{
endAdornment: (
<InputAdornment position="end" className={styles.logoAdornment}>