mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-08 15:13:42 +08:00
feat: Happy New Year
This commit is contained in:
@@ -43,7 +43,8 @@ const HeaderBar = () => {
|
|||||||
const logo = getLogo();
|
const logo = getLogo();
|
||||||
var themeMode = localStorage.getItem('theme-mode');
|
var themeMode = localStorage.getItem('theme-mode');
|
||||||
const currentDate = new Date();
|
const currentDate = new Date();
|
||||||
const isNewYear = currentDate.getMonth() === 0 && currentDate.getDate() === 1;
|
// enable fireworks on new year(1.1 and 2.9-2.24)
|
||||||
|
const isNewYear = (currentDate.getMonth() === 0 && currentDate.getDate() === 1) || (currentDate.getMonth() === 1 && currentDate.getDate() >= 9 && currentDate.getDate() <= 24);
|
||||||
|
|
||||||
async function logout() {
|
async function logout() {
|
||||||
setShowSidebar(false);
|
setShowSidebar(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user