diff --git a/CHANGELOG.md b/CHANGELOG.md index b1fcb9173..91ada826e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -60,6 +60,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Improvements +- [#784](https://github.com/alleslabs/celatone-frontend/pull/784) Make proposal list row clickable with command/ctrl - [#776](https://github.com/alleslabs/celatone-frontend/pull/776) Add expand/collapse all to proposal messages in detail page - [#781](https://github.com/alleslabs/celatone-frontend/pull/781) Tooltip default shouldWrap - [#774](https://github.com/alleslabs/celatone-frontend/pull/774) Add relevant contract to cosmwasm pool diff --git a/src/lib/components/table/proposals/ProposalsTableRow.tsx b/src/lib/components/table/proposals/ProposalsTableRow.tsx index 7b4eea933..a34473821 100644 --- a/src/lib/components/table/proposals/ProposalsTableRow.tsx +++ b/src/lib/components/table/proposals/ProposalsTableRow.tsx @@ -2,7 +2,7 @@ import type { DividerProps, GridProps } from "@chakra-ui/react"; import { Grid } from "@chakra-ui/react"; import { TableRow, TableRowFreeze } from "../tableComponents"; -import { useInternalNavigate } from "lib/app-provider"; +import { AppLink } from "lib/components/AppLink"; import { ExplorerLink } from "lib/components/ExplorerLink"; import { StopPropagationBox } from "lib/components/StopPropagationBox"; import type { Proposal } from "lib/types"; @@ -25,81 +25,74 @@ export const ProposalsTableRow = ({ templateColumns, boxShadow, }: ProposalsTableRowProps) => { - const navigate = useInternalNavigate(); - - const onRowSelect = (proposalId: number) => - navigate({ - pathname: "/proposals/[proposalId]", - query: { proposalId }, - }); - // TODO - Revisit split columnsWidth const columnsWidth = templateColumns?.toString().split(" "); const isDepositOrVoting = proposal.status === ProposalStatus.DEPOSIT_PERIOD || proposal.status === ProposalStatus.VOTING_PERIOD; return ( - div": { - bgColor: - proposal.isExpedited && isDepositOrVoting - ? "primary.background" - : "gray.900", - }, - }} - onClick={() => onRowSelect(proposal.id)} - > - - - - + div": { + bgColor: + proposal.isExpedited && isDepositOrVoting + ? "primary.background" + : "gray.900", + }, + }} > - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - + + + ); };