@@ -17,14 +17,13 @@ import {
17
17
InstantSearch,
18
18
Snippet,
19
19
} from "react-instantsearch-dom";
20
- import { useDispatch, useStore, useSelector } from "react-redux";
20
+ import { useDispatch, useSelector, useStore } from "react-redux";
21
21
import styled from "styled-components";
22
+ import AlgoliaLogoSvg from "../../images/algolia-logo.svg";
22
23
import { State } from "../../state";
23
24
import { changeSearchQuery } from "../../state/common";
24
25
import { Link } from "./link";
25
26
26
- import AlgoliaLogoSvg from "../../images/algolia-logo.svg";
27
-
28
27
interface SearchProperties {
29
28
siteUrl: string;
30
29
}
@@ -133,17 +132,17 @@ const Stats = connectStateResults(
133
132
}` as any)
134
133
);
135
134
136
- const DocHit = (siteUrl: string, clickHandler: () => void) => ({
137
- hit,
138
- }: HitComponentProperties) => {
139
- const slug = (hit.url as string).replace(siteUrl, "");
135
+ const DocHit =
136
+ (siteUrl: string, clickHandler: () => void) =>
137
+ ({ hit }: HitComponentProperties) => {
138
+ const slug = (hit.url as string).replace(siteUrl, "");
140
139
141
- return (
142
- <Link to={slug} onClick={clickHandler}>
143
- <Snippet attribute="content" hit={hit} tagName="mark" />
144
- </Link>
145
- );
146
- };
140
+ return (
141
+ <Link to={slug} onClick={clickHandler}>
142
+ <Snippet attribute="content" hit={hit} tagName="mark" />
143
+ </Link>
144
+ );
145
+ };
147
146
148
147
const Container = styled.div`
149
148
display: flex;
@@ -199,7 +198,7 @@ const HitsWrapper = styled.div<{ show: boolean }>`
199
198
color: var(--brand-color);
200
199
201
200
&:hover {
202
- color: #667 ;
201
+ color: var(--text-color) ;
203
202
}
204
203
}
205
204
}
0 commit comments