Add SVG studio image support, and studio image caching (#418)

* Support SVGs for studio images and add ETAGs
* Add SVG to studio image input
* Update content sniffing
This commit is contained in:
InfiniteTF
2020-04-03 00:11:48 +02:00
committed by GitHub
parent aee9df966b
commit 0f622c84f4
4 changed files with 25 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ interface IProps {
onAutoTag?: () => void;
onImageChange: (event: React.FormEvent<HTMLInputElement>) => void;
onBackImageChange?: (event: React.FormEvent<HTMLInputElement>) => void;
acceptSVG?: boolean;
}
export const DetailsEditNavbar: React.FC<IProps> = (props: IProps) => {
@@ -113,6 +114,7 @@ export const DetailsEditNavbar: React.FC<IProps> = (props: IProps) => {
isEditing={props.isEditing}
text={props.onBackImageChange ? "Front image..." : undefined}
onImageChange={props.onImageChange}
acceptSVG={props.acceptSVG ?? false}
/>
{renderBackImageInput()}
{renderAutoTagButton()}