Skip to content

Commit

Permalink
Remove monthNow prop from giftarticle
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazehs committed Jun 15, 2023
1 parent 8a87c26 commit f627aa6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions components/x-gift-article/src/GiftArticle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ import { ShareType } from './lib/constants'
const isCopySupported =
typeof document !== 'undefined' && document.queryCommandSupported && document.queryCommandSupported('copy')

const todayDate = new Date()
const monthNow = `${updaters.monthNames[todayDate.getMonth()]}`

const withGiftFormActions = withActions(
(initialProps) => {
const api = new ApiClient({
Expand Down Expand Up @@ -237,7 +234,6 @@ const withGiftFormActions = withActions(
title: 'Share this article',
giftCredits: undefined,
monthlyAllowance: undefined,
monthNow: monthNow,
showCopyButton: isCopySupported,
isGiftUrlCreated: false,
isGiftUrlShortened: false,
Expand Down

0 comments on commit f627aa6

Please sign in to comment.