@@ -23,7 +23,6 @@ const ListDocumentPage = ({language, setLanguage, buttonetext, placeholdertext,
2323 const [ laws , setLaws ] = useState < Document [ ] > ( defaultLaws )
2424 const [ errorMessage , setErrorMessage ] = useState < string > ( "" )
2525 let lan : string = language
26- const keybutton = lan === "fin" ? "Asiasanahaku" : "Sök med ämnesord"
2726
2827
2928 const topStyle : React . CSSProperties = {
@@ -61,17 +60,6 @@ const ListDocumentPage = ({language, setLanguage, buttonetext, placeholdertext,
6160 height : '50px' ,
6261 }
6362
64- const key : React . CSSProperties = {
65- padding : '5px' ,
66- backgroundColor : ' #F3F8FC' ,
67- border : '1px solid #0C6FC0' ,
68- textDecoration : 'none'
69- }
70-
71- const keybox : React . CSSProperties = {
72- marginBottom : '25px'
73- }
74-
7563 function logError ( error : unknown , msg : string ) {
7664 console . error ( "Error:" , error ) ;
7765 localStorage . removeItem ( `results_${ apisection } ` )
@@ -171,8 +159,7 @@ const ListDocumentPage = ({language, setLanguage, buttonetext, placeholdertext,
171159 handleSearchInputChange = { handleSearchInputChange }
172160 handleSearchEvent = { handleSearchEvent }
173161 />
174- { apisection === "statute" && < div style = { keybox } > < a href = "/lainsaadanto/asiasanat" style = { key } > { keybutton } </ a > </ div > }
175- { apisection !== "statute" && < div style = { keybox } > </ div > }
162+ { /* Keyword search button temporarily disabled */ }
176163 < div id = "errorblock" >
177164 < Notification message = { errorMessage } />
178165 </ div >
0 commit comments