Skip to content

Commit

Permalink
Project page's "Status" card's tooltip bug (#4194)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyd-eth authored Jan 15, 2024
1 parent f1b19f6 commit fd9ae2c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ export const CurrentUpcomingSubPanel = ({
const cycleLengthTooltip =
info.type === 'current' ? currentCycleRemainingLengthTooltip : undefined

const cycleStatusValue = topPanelsInfo[STATUS_INDEX].value
const cycleLengthValue = topPanelsInfo[CYCLE_LENGTH_INDEX].value

const cycleStatusTooltip = (
const cycleStatusTooltip = info.currentCycleUnlocked ? (
<Trans>The project's rules are unlocked and can change at any time.</Trans>
) : (
<Trans>
This project's rules will be locked in place for {cycleStatusValue} days.
This project's rules will be locked in place for {cycleLengthValue}.
</Trans>
)

Expand Down
9 changes: 6 additions & 3 deletions src/locales/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2627,6 +2627,9 @@ msgstr ""
msgid "When someone pays your project 1 ETH:"
msgstr ""

msgid "This project's rules will be locked in place for {cycleLengthValue}."
msgstr ""

msgid "What does Juicebox cost?"
msgstr ""

Expand Down Expand Up @@ -2894,9 +2897,6 @@ msgstr ""
msgid "Allow a few days for your project to appear in the \"archived\" projects list on the Projects page."
msgstr ""

msgid "This project's rules will be locked in place for {cycleStatusValue} days."
msgstr ""

msgid "Your edits will take effect in <0>cycle #{0}</0>. The current cycle (#{currentFCNumber}) won't be altered."
msgstr ""

Expand Down Expand Up @@ -3203,6 +3203,9 @@ msgstr ""
msgid "Your NFTs have been edited successfully"
msgstr ""

msgid "The project's rules are unlocked and can change at any time."
msgstr ""

msgid "No file uploaded."
msgstr ""

Expand Down

1 comment on commit fd9ae2c

@vercel
Copy link

@vercel vercel bot commented on fd9ae2c Jan 15, 2024

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.