@@ -44,11 +44,11 @@ class Assessment extends React.Component<AssessmentProps, { showOverlay: boolean
4444 />
4545 )
4646 }
47- const briefing = < Text > { this . props . assessment . longSummary } </ Text >
47+ const longSummaryElement = < Text > { this . props . assessment . longSummary } </ Text >
4848 const overlay = (
4949 < Dialog className = "mission-briefing" isOpen = { this . state . showOverlay } >
5050 < Card >
51- { briefing }
51+ { longSummaryElement }
5252 < Button
5353 className = "mission-briefing-button"
5454 // tslint:disable-next-line jsx-no-lambda
@@ -58,11 +58,21 @@ class Assessment extends React.Component<AssessmentProps, { showOverlay: boolean
5858 </ Card >
5959 </ Dialog >
6060 )
61- const briefingTab : SideContentTab = {
62- label : 'Briefing' ,
63- icon : IconNames . BRIEFCASE ,
64- body : briefing
65- }
61+ const shortSummaryElement = (
62+ < Text > { this . props . assessment . questions [ this . props . questionId ] . content } </ Text >
63+ )
64+ const tabs : SideContentTab [ ] = [
65+ {
66+ label : `Task ${ this . props . questionId } ` ,
67+ icon : IconNames . NINJA ,
68+ body : shortSummaryElement
69+ } ,
70+ {
71+ label : `${ this . props . assessment . category } Briefing` ,
72+ icon : IconNames . BRIEFCASE ,
73+ body : longSummaryElement
74+ }
75+ ]
6676 const listingPath = `/academy/${ assessmentCategoryLink ( this . props . assessment . category ) } `
6777 const assessmentPath = listingPath + `/${ this . props . assessment . id . toString ( ) } `
6878 const controlBarOptions : ControlBarOwnProps = {
@@ -81,7 +91,7 @@ class Assessment extends React.Component<AssessmentProps, { showOverlay: boolean
8191 return (
8292 < div className = "Assessment pt-dark" >
8393 { overlay }
84- < Workspace controlBarOptions = { controlBarOptions } sideContentTabs = { [ briefingTab ] } />
94+ < Workspace controlBarOptions = { controlBarOptions } sideContentTabs = { tabs } />
8595 </ div >
8696 )
8797 }
0 commit comments