fix(asset): wideSVG is refusing to exist, use legacy loading mechanism

This commit is contained in:
Paul
2021-10-23 16:42:04 +01:00
parent 6595b7687a
commit 6e3905eb0f
5 changed files with 16 additions and 19 deletions

View File

@@ -9,6 +9,7 @@ import { useContext, useState } from "preact/hooks";
import { AppContext } from "../../../context/revoltjs/RevoltClient";
import { takeError } from "../../../context/revoltjs/util";
import wideSVG from "../../../../public/assets/wide.svg";
import Button from "../../../components/ui/Button";
import Overline from "../../../components/ui/Overline";
import Preloader from "../../../components/ui/Preloader";
@@ -145,7 +146,7 @@ export function Form({ page, callback }: Props) {
return (
<div className={styles.form}>
<img src={"/assets/svg/wide.svg"} />
<img src={wideSVG} />
{/* Preact / React typing incompatabilities */}
<form
onSubmit={