Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4d16a13

Browse files
committedMay 26, 2025
include right column in expanded view
1 parent 22da6f7 commit 4d16a13

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed
 

‎web/src/components/ExpandedViewMode/EVMiddleColumn/TabContent/EvDetails/EvDetails.component.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export type EvDetailsOwnProps = {
4545
updateOutcome: (outcome: Outcome, actionHash: ActionHashB64) => Promise<void>
4646
updateOutcomeWithLatest: () => Promise<void>
4747
cleanOutcome: () => Outcome
48+
rightColumn: React.ReactNode
4849
}
4950

5051
export type EvDetailsConnectorStateProps = {
@@ -122,6 +123,7 @@ const EvDetails: React.FC<EvDetailsProps> = ({
122123
startDescriptionEdit,
123124
endDescriptionEdit,
124125
editingPeers,
126+
rightColumn,
125127
// Destructure rightColumn prop
126128
}) => {
127129
// reset
@@ -487,6 +489,7 @@ const EvDetails: React.FC<EvDetailsProps> = ({
487489
{/* End of ev-details-main-content */}
488490

489491
{/* Render the right column alongside the main content */}
492+
{rightColumn}
490493
</div>
491494
)
492495
}

‎web/src/components/ExpandedViewMode/ExpandedViewMode.connector.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,13 @@ const ConnectedExpandedViewMode: React.FC<ConnectedExpandedViewModeProps> = ({
298298
/>
299299
) : null
300300

301+
const rightColumn = outcome ? ( // Only render if outcome exists
302+
<ConnectedEVRightColumn
303+
projectId={projectId}
304+
onClose={onClose}
305+
outcome={outcome}
306+
/>
307+
) : null
301308
// redux connected expanded view components
302309
const details = (
303310
<ConnectedEvDetails
@@ -313,6 +320,7 @@ const ConnectedExpandedViewMode: React.FC<ConnectedExpandedViewModeProps> = ({
313320
setDescription,
314321
githubInputLinkText,
315322
setGithubInputLinkText,
323+
rightColumn,
316324
}}
317325
/>
318326
)
@@ -323,13 +331,6 @@ const ConnectedExpandedViewMode: React.FC<ConnectedExpandedViewModeProps> = ({
323331
appWebsocket={appWebsocket}
324332
/>
325333
)
326-
const rightColumn = outcome ? ( // Only render if outcome exists
327-
<ConnectedEVRightColumn
328-
projectId={projectId}
329-
onClose={onClose}
330-
outcome={outcome}
331-
/>
332-
) : null
333334

334335
// Ensure all necessary props are passed to the component,
335336
// which will then distribute them to the wrapper or inner component.

0 commit comments

Comments
 (0)
Please sign in to comment.