-
- {
- if (!evt.currentTarget.files) {
- return;
- }
-
- const file = evt.currentTarget.files[0];
- if (!file) {
- return;
- }
-
- const content = await uploadFile(file, "dataUrl");
- if (!content) {
- return;
- }
-
- const image = document.createElement("img");
- image.src = content;
- image.onload = function () {
- setLocalState("logo", {
- width: image.width,
- height: image.height,
- type: file.type,
- url: content,
- });
- };
- }}
- />
-
-
@@ -763,6 +725,44 @@ const SettingsOverlay: Component = () => {
item={4}
>