feat: add CountdownDeadline component#151
Closed
go165 wants to merge 1 commit into
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #127.
Summary
CountdownDeadlinecomponent plus exportedtimeRemaining(deadline, now)helperVaultCard,VaultDetail, andPendingValidationsdesign-system/documentation/countdown-deadline.mdVerification
npm test -- --run src/components/__tests__/CountdownDeadline.test.tsx src/components/__tests__/VaultCard.test.tsxnpm test -- --run src/components/__tests__/CountdownDeadline.test.tsx src/components/__tests__/VaultCard.test.tsx src/pages/__tests__/ValidationDetail.test.tsxgit diff --checkFocused coverage for
src/components/CountdownDeadline.tsxis 100% statements / branches / functions / lines.VaultCard.tsxremains 100% covered in the focused run.Known unrelated repo baseline caveats observed while verifying:
npm test -- --run ... src/pages/__tests__/Vaults.test.tsxfails because@testing-library/user-eventis imported by that existing test but is not installed.npx tsc -b --pretty falsestill stops on the existingsrc/components/Field.tsxsyntax error.Payout wallet if reward eligible:
0x1f0130669ca6fd02e025a984cc038f139df19a2f