Quick fix
This commit is contained in:
parent
dd4727770a
commit
4066f4e8ce
1 changed files with 8 additions and 1 deletions
|
@ -11,6 +11,7 @@ import {
|
||||||
} from "decky-frontend-lib";
|
} from "decky-frontend-lib";
|
||||||
import { VFC, useState } from "react";
|
import { VFC, useState } from "react";
|
||||||
import { FaFan } from "react-icons/fa";
|
import { FaFan } from "react-icons/fa";
|
||||||
|
import { SiOnlyfans } from "react-icons/si";
|
||||||
|
|
||||||
import * as backend from "./backend";
|
import * as backend from "./backend";
|
||||||
import {Canvas} from "./canvas";
|
import {Canvas} from "./canvas";
|
||||||
|
@ -292,10 +293,16 @@ export default definePlugin((serverApi: ServerAPI) => {
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
let ico = <FaFan />;
|
||||||
|
let now = new Date();
|
||||||
|
if (now.getDate() == 1 && now.getMonth() == 3) {
|
||||||
|
ico = <SiOnlyfans/>;
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
title: <div className={staticClasses.Title}>Fantastic</div>,
|
title: <div className={staticClasses.Title}>Fantastic</div>,
|
||||||
content: <Content serverAPI={serverApi} />,
|
content: <Content serverAPI={serverApi} />,
|
||||||
icon: <FaFan />,
|
icon: ico,
|
||||||
onDismount() {
|
onDismount() {
|
||||||
clearInterval(periodicHook!);
|
clearInterval(periodicHook!);
|
||||||
serverApi.routerHook.removeRoute("/decky-plugin-test");
|
serverApi.routerHook.removeRoute("/decky-plugin-test");
|
||||||
|
|
Loading…
Reference in a new issue