Skip to content

Commit

Permalink
Merge pull request #885 from alleslabs/feat/voted-proposal
Browse files Browse the repository at this point in the history
fix: voted proposal freeze columns
  • Loading branch information
evilpeach committed Apr 17, 2024
2 parents 2ab2b6f + a0ba85d commit 3bafe50
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Bug fixes

- [#885](https://github.com/alleslabs/celatone-frontend/pull/885) Fix voted proposals freeze columns
- [#881](https://github.com/alleslabs/celatone-frontend/pull/881) Fix abi option boolean problem
- [#877](https://github.com/alleslabs/celatone-frontend/pull/877) Fix validator list/details bug bash
- [#874](https://github.com/alleslabs/celatone-frontend/pull/874) Fix minor proposal and validator bugs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ export const Countdown = ({ endTime, isString }: CountdownProps) => {
</span>
</>
);
if (diffTime === 0) router.reload();
setTime(timestamp);

if (diffTime === 0) clearInterval(intervalId);
}, 1000);
return () => clearInterval(intervalId);
}, [endTime, isString, router]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,16 @@ export const VotedProposalsTableRow = ({
className="copier-wrapper"
templateColumns={templateColumns}
onClick={() => onRowSelect(votedProposal.proposalId)}
minW="min-content"
cursor="pointer"
_hover={{
"> div": {
bgColor: "gray.900",
bgColor:
votedProposal.isExpedited && isDepositOrVoting
? "primary.background"
: "gray.900",
},
}}
transition="all 0.25s ease-in-out"
cursor="pointer"
>
<TableRowFreeze left="0">
<ExplorerLink
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { TableContainer } from "@chakra-ui/react";

import { useMobile } from "lib/app-provider";
import { Loading } from "lib/components/Loading";
import { EmptyState, ErrorFetching } from "lib/components/state";
import { MobileTableContainer } from "lib/components/table";
import { MobileTableContainer, TableContainer } from "lib/components/table";
import type { ValidatorVotedProposalsResponse } from "lib/services/validator";
import type { Option } from "lib/types";

Expand Down

0 comments on commit 3bafe50

Please sign in to comment.