Skip to content

Commit

Permalink
feat: turn snow on
Browse files Browse the repository at this point in the history
  • Loading branch information
artmsilva authored Dec 25, 2023
1 parent 3f907e4 commit 5c88780
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions build.washingtonpost.com/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,6 @@ const WinterWonderland = () => {
return;
}

// check if it's after christmas
const today = new Date();
const christmas = new Date(today.getFullYear(), 11, 25);
if (today.getMonth() === 11 && today.getDate() > 25) {
christmas.setFullYear(christmas.getFullYear() + 1);
}

// if it's after christmas, don't show snow
if (today > christmas) {
return;
}

// if it's before christmas, show snow
setShowSnow(true);
}, []);

Expand Down

2 comments on commit 5c88780

@vercel
Copy link

@vercel vercel bot commented on 5c88780 Dec 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wpds-ui-kit – ./build.washingtonpost.com

build.washingtonpost.com
wpds-ui-kit-git-main.preview.now.washingtonpost.com
wpds-ui-kit.preview.now.washingtonpost.com

@vercel
Copy link

@vercel vercel bot commented on 5c88780 Dec 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wpds-ui-kit-storybook – ./

wpds-ui-kit-storybook-git-main.preview.now.washingtonpost.com
wpds-ui-kit-storybook.preview.now.washingtonpost.com

Please sign in to comment.