forked from Kieran/snort
add jpg module
This commit is contained in:
parent
57e6580795
commit
ea0e925021
4
d.ts
Normal file
4
d.ts
Normal file
@ -0,0 +1,4 @@
|
||||
declare module "*.jpg" {
|
||||
const value: any
|
||||
export default value
|
||||
}
|
@ -1,5 +1,4 @@
|
||||
import "./Avatar.css";
|
||||
// @ts-expect-error
|
||||
import Nostrich from "../nostrich.jpg";
|
||||
|
||||
import { CSSProperties } from "react";
|
||||
|
@ -1,5 +1,4 @@
|
||||
import "./Textarea.css";
|
||||
// @ts-expect-error
|
||||
import Nostrich from "../nostrich.jpg";
|
||||
|
||||
import { useLiveQuery } from "dexie-react-hooks";
|
||||
|
@ -1,5 +1,4 @@
|
||||
import "./SettingsPage.css";
|
||||
// @ts-ignore
|
||||
import Nostrich from "../nostrich.jpg";
|
||||
|
||||
import { useEffect, useState } from "react";
|
||||
@ -196,7 +195,7 @@ export default function SettingsPage() {
|
||||
</div>
|
||||
<div>
|
||||
<h2>Header</h2>
|
||||
<div style={{ backgroundImage: `url(${(banner?.length ?? 0) === 0 ? avatarPicture : banner})` }} className="banner">
|
||||
<div style={{ backgroundImage: `url(${(banner?.length ?? 0) === 0 ? Nostrich : banner})` }} className="banner">
|
||||
<div className="edit" onClick={() => setNewBanner()}>Edit</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user