Skip to content

Commit

Permalink
Update Switcher.js (#548)
Browse files Browse the repository at this point in the history
* Update Switcher.js

* chore: add removal todo
  • Loading branch information
vpicone authored Nov 20, 2019
1 parent 17ee8c9 commit 56d057f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ const DefaultChildren = () => {
const eventLaunch = new Date('December 2, 2019');
const today = new Date();

// TODO: remove after 12/2/2019 launch
const eventProps =
today >= eventLaunch
? { href: 'https://www.ibm.com/design/events/' }
? { href: 'https://www.ibm.com/design/event/' }
: { disabled: true };

return (
Expand All @@ -75,7 +76,7 @@ const DefaultChildren = () => {
<SwitcherLink href="https://www.ibm.com/standards/web/">
Digital
</SwitcherLink>
<SwitcherLink {...eventProps}>Events</SwitcherLink>
<SwitcherLink {...eventProps}>Event</SwitcherLink>
<SwitcherLink disabled>Workplace</SwitcherLink>
<SwitcherDivider>Design practices</SwitcherDivider>
<SwitcherLink href="https://www.ibm.com/design/thinking/">
Expand Down

1 comment on commit 56d057f

@vercel
Copy link

@vercel vercel bot commented on 56d057f Nov 20, 2019

Choose a reason for hiding this comment

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

Please sign in to comment.