mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-27 16:17:22 +00:00
linting
This commit is contained in:
parent
88fc10e89b
commit
65bdc4e4dd
1 changed files with 13 additions and 7 deletions
|
|
@ -6,13 +6,19 @@ export const Search: React.FC = () => {
|
|||
const appId = process.env.NEXT_PUBLIC_ALGOLIA_APP_ID || '';
|
||||
const apiKey = process.env.NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY || '';
|
||||
const indexName = process.env.NEXT_PUBLIC_ALGOLIA_BASE_SEARCH_INDEX_NAME || '';
|
||||
const indexDomain = process.env.NEXT_PUBLIC_ALGOLIA_INDEX_DOMAIN || 'https://melodious-puffpuff-8e1109.netlify.app';
|
||||
const indexDomain =
|
||||
process.env.NEXT_PUBLIC_ALGOLIA_INDEX_DOMAIN || 'https://melodious-puffpuff-8e1109.netlify.app';
|
||||
return (
|
||||
<DocSearch appId={appId} apiKey={apiKey} indexName={indexName} transformItems={
|
||||
items => items.map(item => ({
|
||||
...item,
|
||||
url: item.url.replace(indexDomain, ''),
|
||||
}))
|
||||
} />
|
||||
<DocSearch
|
||||
appId={appId}
|
||||
apiKey={apiKey}
|
||||
indexName={indexName}
|
||||
transformItems={items =>
|
||||
items.map(item => ({
|
||||
...item,
|
||||
url: item.url.replace(indexDomain, '')
|
||||
}))
|
||||
}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue