Skip to content

Commit 6ec1057

Browse files
committed
Fix divider
1 parent dafdd12 commit 6ec1057

File tree

1 file changed

+9
-22
lines changed

1 file changed

+9
-22
lines changed

src/app/(sok)/_components/searchResult/Divider.tsx

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import React, { ReactElement } from "react";
2-
import { BodyShort, Box, Button, Heading, Hide, HStack } from "@navikt/ds-react";
2+
import { BodyShort, Box, Heading } from "@navikt/ds-react";
33
import useQuery from "@/app/(sok)/_components/QueryProvider";
44
import joinStringWithSeperator from "@/app/_common/utils/joinStringWithSeperator";
5-
import DetectiveIcon from "@/app/(sok)/_components/icons/DetectiveIcon";
65

76
interface DividerProps {
87
index: number;
@@ -13,27 +12,15 @@ export default function Divider({ index, indexOfLastWithScoreAboveThreshold }: D
1312

1413
if (indexOfLastWithScoreAboveThreshold !== 0 && indexOfLastWithScoreAboveThreshold === index) {
1514
return (
16-
<Box paddingInline="4" paddingBlock="2" borderRadius="small" background="surface-subtle" className="mt-12">
17-
<HStack wrap={false} justify="space-between" align="center" gap="4">
18-
<Box>
19-
<Heading level="3" size="small" className="mb-05">
20-
Viser bare mest relevante treff
21-
</Heading>
15+
<Box background="surface-alt-1-subtle" className="mt-16" paddingBlock="4" paddingInline="2">
16+
<Heading level="3" size="medium" className="mb-05">
17+
Mindre relevante treff
18+
</Heading>
2219

23-
<BodyShort spacing>
24-
13 flere annonser nevner <b>{joinStringWithSeperator(query.getAll("q"), "eller")}</b> i
25-
annonseteksten
26-
</BodyShort>
27-
<Button variant="secondary-neutral" size="small">
28-
Søk på nytt med alle treff
29-
</Button>
30-
</Box>
31-
<Hide below="md">
32-
<Box paddingInline="4">
33-
<DetectiveIcon />
34-
</Box>
35-
</Hide>
36-
</HStack>
20+
<BodyShort>
21+
Treffene er ikke like relevante, men nevner likevel{" "}
22+
<b>{joinStringWithSeperator(query.getAll("q"), "eller")}</b> i annonseteksten
23+
</BodyShort>
3724
</Box>
3825
);
3926
}

0 commit comments

Comments
 (0)