Skip to content

Commit

Permalink
fix: payloads visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Argeare5 committed Sep 27, 2023
1 parent b4216c3 commit 42e44b8
Show file tree
Hide file tree
Showing 11 changed files with 540 additions and 150 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ipfs_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
ipfs_deploy:
runs-on: ubuntu-latest
environment:
name: 'ipfs'
name: 'IPFS'
url: https://${{ steps.pinata.outputs.hash }}.ipfs.cf-ipfs.com/
outputs:
pinata_hash: '${{ steps.pinata.outputs.hash }}'
Expand Down
14 changes: 11 additions & 3 deletions src/proposals/components/proposal/ProposalPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { ProposalHistoryModal } from '../proposalHistory/ProposalHistoryModal';
import { Details } from './Details';
import { DetailsLinks } from './DetailsLinks';
import { DetailsShareLinks } from './DetailsShareLinks';
import { ProposalPayloads } from './ProposalPayloads';
import { ProposalStatusDetails } from './ProposalStatusDetails';
import { ProposalTimeline } from './ProposalTimeline';
import { ProposalVoteInfo } from './ProposalVoteInfo';
Expand Down Expand Up @@ -164,6 +165,7 @@ export function ProposalPage({
lastPayloadCanceledAt,
lastPayloadExecutedAt,
lastPayloadExpiredAt,
isProposalExecuted,
} = getProposalStepsAndAmounts({
proposalData: proposal.data,
quorum: proposal.config.quorum,
Expand Down Expand Up @@ -423,6 +425,15 @@ export function ProposalPage({
</>
</NoSSR>

<NoSSR>
<ProposalPayloads
proposalId={proposal.data.id}
isProposalExecuted={isProposalExecuted}
payloads={proposal.data.payloads}
setSelectedPayloadForExecute={setSelectedPayloadForExecute}
/>
</NoSSR>

<Box
sx={{
display: 'none',
Expand Down Expand Up @@ -467,9 +478,7 @@ export function ProposalPage({
proposal.data.votingMachineData.sentToGovernance
}
proposalQueuingTime={proposal.data.queuingTime}
payloads={proposal.data.payloads}
cooldownPeriod={proposal.timings.cooldownPeriod}
executionPayloadTime={proposal.timings.executionPayloadTime}
underlyingAssets={
proposal.data.votingMachineData.votingAssets
}
Expand All @@ -479,7 +488,6 @@ export function ProposalPage({
hasRequiredRoots={
proposal.data.votingMachineData.hasRequiredRoots
}
setSelectedPayloadForExecute={setSelectedPayloadForExecute}
/>
</>
</NoSSR>
Expand Down
Loading

0 comments on commit 42e44b8

Please sign in to comment.