From fe773e5b7cba6488b23f9bc2ca9d366bbb66f579 Mon Sep 17 00:00:00 2001 From: Claudio Zizza Date: Wed, 18 Oct 2023 23:50:12 +0200 Subject: [PATCH] Adapt search.js to instantsearch.js v4 changes --- source/js/search.js | 2 +- source/styles/index.scss | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/js/search.js b/source/js/search.js index 91b2bade..95bff4ce 100644 --- a/source/js/search.js +++ b/source/js/search.js @@ -1,5 +1,5 @@ import instantsearch from 'instantsearch.js'; -import algoliasearch from 'algoliasearch-helper'; +import algoliasearch from 'algoliasearch'; import { searchBox, hits, configure } from 'instantsearch.js/es/widgets'; export default function (projectSlug, versionSlug, searchBoxSettings) { diff --git a/source/styles/index.scss b/source/styles/index.scss index d29a6969..98011c3c 100644 --- a/source/styles/index.scss +++ b/source/styles/index.scss @@ -5,6 +5,7 @@ $fa-font-path: '../../node_modules/@fortawesome/fontawesome-free/webfonts'; @import '../../node_modules/@fortawesome/fontawesome-free/scss/brands'; @import '../../node_modules/@fortawesome/fontawesome-free/scss/regular'; @import '../../node_modules/@fortawesome/fontawesome-free/scss/solid'; +@import '../../node_modules/instantsearch.css/themes/satellite.css'; $doctrine-orange: #fa6a3c; $doctrine-light-blue: #2e6bc8;