Skip to content

Commit

Permalink
Merge pull request #864 from alleslabs/fix/count-down
Browse files Browse the repository at this point in the history
fix: voting countdown text
  • Loading branch information
evilpeach authored Apr 2, 2024
2 parents 0efd304 + b5f2bba commit c2c20f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
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

0 comments on commit c2c20f0

Please sign in to comment.