Skip to content

Commit af12159

Browse files
authored
Merge branch 'develop' into develop_ui-improvements
2 parents d1efce7 + 00aad5b commit af12159

8 files changed

+777
-77
lines changed

Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ RUN npm i -g serve
99
COPY . .
1010
COPY .env .
1111

12-
RUN npm run build
13-
1412
EXPOSE 3010
1513

1614
# Specify the command to run your application
17-
CMD ["serve", "-s", "-p", "3010", "dist"]
15+
CMD ["npm", "run", "dev"]

docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ services:
66
container_name: multisig-frontend
77
ports:
88
- '3010:3010'
9+
env_file:
10+
- .env

src/components/CosmosProposalsTable.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22
import { convertTimestampToDateTime } from '../utils/dateTimeUtils';
33
import { Proposal } from '../@types/CosmosProposalsTypes';
44
import { Link } from 'react-router-dom';
5+
import { useAppContext } from '../context/AppContext';
56

67
interface CosmosProposalsPageProps {
78
proposals: Proposal[];
@@ -23,6 +24,8 @@ const CosmosProposalsPage: React.FC<CosmosProposalsPageProps> = ({
2324
executeAction,
2425
}) => {
2526
const currentPage = parseInt(`${offset / limit}`) + 1;
27+
const { state } = useAppContext();
28+
const chainName = state.activeCosmosChain.chainName;
2629

2730
return (
2831
<>
@@ -67,7 +70,7 @@ const CosmosProposalsPage: React.FC<CosmosProposalsPageProps> = ({
6770
</div>
6871
</td>
6972
<td>
70-
<Link to={`/cosmos/proposals/${proposal.id}`}>
73+
<Link to={`/cosmos/proposals/${chainName}/${proposal.id}`}>
7174
<button className="d-btn">Details</button>
7275
</Link>
7376
</td>

0 commit comments

Comments
 (0)