Bugfix/image upload fuzzy (#844)

This commit is contained in:
Alex van Andel authored and GitHub committed 2021-10-02 12:04:47 +01:00
1 parent 6547ef1e86
commit e12c879242
6 files changed
+243 -257

No files matched your search

+2 -2
View File
@@ -201,14 +201,14 @@ export default function EditTeam(props: { team: Team | undefined | null; onClose
id="avatar"
placeholder="URL"
className="block w-full px-3 py-2 mt-1 border border-gray-300 rounded-sm shadow-sm focus:outline-none focus:ring-neutral-500 focus:border-neutral-500 sm:text-sm"
defaultValue={imageSrc ? imageSrc : props.team?.logo}
defaultValue={imageSrc ?? props.team?.logo}
/>
<ImageUploader
target="logo"
id="logo-upload"
buttonMsg={imageSrc !== "" ? "Edit logo" : "Upload a logo"}
handleAvatarChange={handleLogoChange}
imageRef={imageSrc ? imageSrc : props.team?.logo}
imageSrc={imageSrc ?? props.team?.logo}
/>
</div>
<hr className="mt-6" />