@@ -11,10 +11,8 @@ import {
1111 PageSectionVariants ,
1212 Breadcrumb ,
1313 BreadcrumbItem ,
14- Button ,
1514 Text ,
1615} from "@patternfly/react-core" ;
17- import AngleLeftIcon from "@patternfly/react-icons/dist/esm/icons/angle-left-icon" ;
1816import { Link } from "react-router-dom" ;
1917import { Paths } from "@app/Paths" ;
2018import { ConditionalRender } from "@app/components/ConditionalRender" ;
@@ -68,8 +66,8 @@ const QuestionnaireSummary: React.FC<QuestionnaireSummaryProps> = ({
6866 sections : summaryData ?. sections ?. map ( ( section ) => ( {
6967 ...section ,
7068 questions : section . questions . filter ( ( { text, explanation } ) =>
71- [ text , explanation ] . some (
72- ( text ) => text ?. toLowerCase ( ) . includes ( searchValue . toLowerCase ( ) )
69+ [ text , explanation ] . some ( ( text ) =>
70+ text ?. toLowerCase ( ) . includes ( searchValue . toLowerCase ( ) )
7371 )
7472 ) ,
7573 } ) ) ,
@@ -140,25 +138,6 @@ const QuestionnaireSummary: React.FC<QuestionnaireSummaryProps> = ({
140138 </ ToolbarItem >
141139 </ ToolbarContent >
142140 </ Toolbar >
143-
144- < Link
145- to = {
146- summaryType === SummaryType . Assessment
147- ? isArchetype
148- ? formatPath ( Paths . archetypeAssessmentActions , {
149- archetypeId : ( summaryData as Assessment ) ?. archetype ?. id ,
150- } )
151- : formatPath ( Paths . applicationAssessmentActions , {
152- applicationId : ( summaryData as Assessment ) ?. application
153- ?. id ,
154- } )
155- : Paths . assessment
156- }
157- >
158- < Button variant = "link" icon = { < AngleLeftIcon /> } >
159- Back to { summaryType . toLowerCase ( ) }
160- </ Button >
161- </ Link >
162141 < div className = "tabs-vertical-container" >
163142 < Tabs
164143 activeKey = { activeSectionIndex }
0 commit comments