File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
web/src/components/ExpandedViewMode
EVMiddleColumn/TabContent/EvDetails Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ export type EvDetailsOwnProps = {
45
45
updateOutcome : ( outcome : Outcome , actionHash : ActionHashB64 ) => Promise < void >
46
46
updateOutcomeWithLatest : ( ) => Promise < void >
47
47
cleanOutcome : ( ) => Outcome
48
+ rightColumn : React . ReactNode
48
49
}
49
50
50
51
export type EvDetailsConnectorStateProps = {
@@ -122,6 +123,7 @@ const EvDetails: React.FC<EvDetailsProps> = ({
122
123
startDescriptionEdit,
123
124
endDescriptionEdit,
124
125
editingPeers,
126
+ rightColumn,
125
127
// Destructure rightColumn prop
126
128
} ) => {
127
129
// reset
@@ -487,6 +489,7 @@ const EvDetails: React.FC<EvDetailsProps> = ({
487
489
{ /* End of ev-details-main-content */ }
488
490
489
491
{ /* Render the right column alongside the main content */ }
492
+ { rightColumn }
490
493
</ div >
491
494
)
492
495
}
Original file line number Diff line number Diff line change @@ -298,6 +298,13 @@ const ConnectedExpandedViewMode: React.FC<ConnectedExpandedViewModeProps> = ({
298
298
/>
299
299
) : null
300
300
301
+ const rightColumn = outcome ? ( // Only render if outcome exists
302
+ < ConnectedEVRightColumn
303
+ projectId = { projectId }
304
+ onClose = { onClose }
305
+ outcome = { outcome }
306
+ />
307
+ ) : null
301
308
// redux connected expanded view components
302
309
const details = (
303
310
< ConnectedEvDetails
@@ -313,6 +320,7 @@ const ConnectedExpandedViewMode: React.FC<ConnectedExpandedViewModeProps> = ({
313
320
setDescription,
314
321
githubInputLinkText,
315
322
setGithubInputLinkText,
323
+ rightColumn,
316
324
} }
317
325
/>
318
326
)
@@ -323,13 +331,6 @@ const ConnectedExpandedViewMode: React.FC<ConnectedExpandedViewModeProps> = ({
323
331
appWebsocket = { appWebsocket }
324
332
/>
325
333
)
326
- const rightColumn = outcome ? ( // Only render if outcome exists
327
- < ConnectedEVRightColumn
328
- projectId = { projectId }
329
- onClose = { onClose }
330
- outcome = { outcome }
331
- />
332
- ) : null
333
334
334
335
// Ensure all necessary props are passed to the component,
335
336
// which will then distribute them to the wrapper or inner component.
You can’t perform that action at this time.
0 commit comments