Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: voting countdown text #864

Merged
merged 2 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Bug fixes

- [#864](https://github.com/alleslabs/celatone-frontend/pull/864) Fix voting countdown text
- [#859](https://github.com/alleslabs/celatone-frontend/pull/859) Fix voting power chart display data
- [#858](https://github.com/alleslabs/celatone-frontend/pull/858) Handle neutron and minitia validator links
- [#852](https://github.com/alleslabs/celatone-frontend/pull/852) Show quorum only during the voting period since past total voting power is not available
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/json-schema/MessageInputSwitch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const MessageInputSwitch = <
* @todos current implementation of sliding box dimensions and position is hardcoded due to issues with ref, improve this later
*/
return (
<Tooltip label={tooltipLabel} isDisabled={!disabled}>
<Tooltip label={tooltipLabel} hidden={!disabled}>
<div style={{ marginLeft: ml }}>
<Flex
border="1px solid var(--chakra-colors-gray-700)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const Countdown = ({ endTime, isString }: CountdownProps) => {
const days = duration.days();
const timestamp = isString ? (
`${
days > 0 && `${days.toString()} ${plur("day", days)} `
days > 0 ? `${days.toString()} ${plur("day", days)} ` : ""
}${duration.hours()}:${formatNumber(duration.minutes())}:${formatNumber(duration.seconds())}`
) : (
<>
Expand Down
Loading