Skip to content

Commit d8e3882

Browse files
committed
asiasanat takaisin
1 parent 630c1d3 commit d8e3882

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

frontend/src/components/ListDocumentPage.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ const ListDocumentPage = ({language, setLanguage, buttonetext, placeholdertext,
6060
height: '50px',
6161
}
6262

63+
const keywordLinkStyle: React.CSSProperties = {
64+
display: 'inline-block',
65+
marginTop: '6px',
66+
marginBottom: '10px',
67+
color: '#0C6FC0',
68+
textDecoration: 'none',
69+
fontSize: '14px'
70+
}
71+
6372
function logError(error: unknown, msg: string) {
6473
console.error("Error:", error);
6574
localStorage.removeItem(`results_${apisection}`)
@@ -159,7 +168,11 @@ const ListDocumentPage = ({language, setLanguage, buttonetext, placeholdertext,
159168
handleSearchInputChange={handleSearchInputChange}
160169
handleSearchEvent={handleSearchEvent}
161170
/>
162-
{/* Keyword search button temporarily disabled */}
171+
{apisection === 'statute' && (
172+
<a href="/lainsaadanto/asiasanat" style={keywordLinkStyle}>
173+
{language === 'fin' ? 'Asiasanahaku' : 'Ämnesordssökning'}
174+
</a>
175+
)}
163176
<div id="errorblock">
164177
<Notification message={errorMessage} />
165178
</div>

0 commit comments

Comments
 (0)