christmas season 30 -> 7 days, show S nav logo on mobile

This commit is contained in:
Martti Malmi
2023-12-07 22:31:58 +02:00
parent a5dddcf093
commit 94ae8847cc
2 changed files with 19 additions and 15 deletions

View File

@ -485,17 +485,17 @@ export const isHalloween = () => {
export const isStPatricksDay = () => {
const event = new Date(ThisYear, 2, 17);
return IsTheSeason(event, 7);
return IsTheSeason(event, 1);
};
export const isChristmas = () => {
const event = new Date(ThisYear, 11, 25);
return IsTheSeason(event, 30);
return IsTheSeason(event, 7);
};
export const isBirthday = () => {
const event = new Date(ThisYear, Birthday.getMonth(), Birthday.getDate());
return IsTheSeason(event, 1);
return CONFIG.appName === "Snort" && IsTheSeason(event, 1);
};
export function getDisplayName(user: UserMetadata | undefined, pubkey: HexKey): string {