Skip to content

Commit e4c270f

Browse files
committed
asiasananappula piiloon, korjaaminen todohon
1 parent ba26b20 commit e4c270f

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

frontend/src/components/AdminPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ const AdminPage = ({ language }: AdminPageProps) => {
302302

303303
<div style={{ marginTop: '50px' }}>
304304
<div style={containerStyle}>
305-
<h2>{language === 'fin' ? 'Järjestelmän jee ylläpito' : 'Systemunderhåll'}</h2>
305+
<h2>{language === 'fin' ? 'Järjestelmän ylläpito' : 'Systemunderhåll'}</h2>
306306

307307
<p style={{ textAlign: 'center', marginBottom: '30px', color: '#666' }}>
308308
{language === 'fin'

frontend/src/components/ListDocumentPage.tsx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)