chore: hide merch banner for now

!nuf
This commit is contained in:
Miodec 2024-08-14 13:54:08 +02:00
parent 101beef87c
commit b50701ee2a

View file

@ -1,6 +1,6 @@
import { z } from "zod";
import { LocalStorageWithSchema } from "../utils/local-storage-with-schema";
import * as Notifications from "./notifications";
// import * as Notifications from "./notifications";
const closed = new LocalStorageWithSchema({
key: "merchBannerClosed",
@ -10,15 +10,15 @@ const closed = new LocalStorageWithSchema({
export function showIfNotClosedBefore(): void {
if (!closed.get()) {
Notifications.addBanner(
`Check out our merchandise, available at <a target="_blank" rel="noopener" href="https://monkeytype.store/">monkeytype.store</a>`,
1,
"./images/merch2.png",
false,
() => {
closed.set(true);
},
true
);
// Notifications.addBanner(
// `Check out our merchandise, available at <a target="_blank" rel="noopener" href="https://monkeytype.store/">monkeytype.store</a>`,
// 1,
// "./images/merch2.png",
// false,
// () => {
// closed.set(true);
// },
// true
// );
}
}