diff --git a/.storybook/MemoryRouter.ts b/.storybook/MemoryRouter.ts deleted file mode 100644 index f7b059b619..0000000000 --- a/.storybook/MemoryRouter.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { action } from '@storybook/addon-actions'; - -const urlLogger = action('Routing state'); - -interface MemoryState { - [key: string]: string | number; -} - -export class MemoryRouter { - private _memoryState: MemoryState; - constructor(initialState: MemoryState = {}) { - this._memoryState = initialState; - } - write(routeState: MemoryState) { - this._memoryState = routeState; - urlLogger(JSON.stringify(routeState, null, 2)); - } - read() { - return this._memoryState; - } - createURL() { - return ''; - } - onUpdate() { - return {}; - } -} diff --git a/.storybook/preview-head.html b/.storybook/preview-head.html index b55fcbf640..a957de0631 100644 --- a/.storybook/preview-head.html +++ b/.storybook/preview-head.html @@ -1,2 +1,2 @@ - + diff --git a/src/components/InfiniteHits/InfiniteHits.js b/src/components/InfiniteHits/InfiniteHits.js index 281ec43dd6..4de989b62e 100644 --- a/src/components/InfiniteHits/InfiniteHits.js +++ b/src/components/InfiniteHits/InfiniteHits.js @@ -6,10 +6,7 @@ import Template from '../Template/Template'; const InfiniteHits = ({ results, hits, - hasShowPrevious, - showPrevious, showMore, - isFirstPage, isLastPage, cssClasses, templateProps, @@ -29,21 +26,6 @@ const InfiniteHits = ({ return (
- {hasShowPrevious && ( -