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: voted proposal freeze columns #885

Merged
merged 3 commits into from
Apr 17, 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 @@ -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
Loading