mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-10 23:56:22 +08:00
chore: hide merch banner for now
!nuf
This commit is contained in:
parent
101beef87c
commit
b50701ee2a
1 changed files with 11 additions and 11 deletions
|
@ -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
|
||||
// );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue