-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OUR415-313] Adds prop/slot for the "Clear Search" button in the SearchResults
component
#261
Conversation
@@ -2,7 +2,6 @@ import React, { forwardRef } from "react"; | |||
import { TransformedSearchHit } from "models"; | |||
import { Link } from "react-router-dom"; | |||
import { LabelTag } from "components/ui/LabelTag"; | |||
import { Tooltip } from "react-tippy"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: Noticed this was unused.
import { render, screen, waitFor } from "@testing-library/react"; | ||
import SearchResults from "components/search/SearchResults/SearchResults"; | ||
import { createSearchClient } from "../../../../test/helpers/createSearchClient"; | ||
import ClearSearchButton from "components/search/Refinements/ClearSearchButton"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chore: let's remove this line
@@ -1,4 +1,4 @@ | |||
import React, { useCallback } from "react"; | |||
import React, { ReactNode, useCallback } from "react"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chore: let's remove this too. notice we've let a lot of warnings through. i have some capacity and am happy to submit a PR to get rid of them
@@ -30,7 +30,7 @@ interface Options { | |||
* @param options Additional customizations of the search response |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question (if-minor): Is this type any because it could be anything? Hoping to avoid type any as much as possible, and if it is needed, we should add a lint ignore comment (it wouldn't let me comment on the actual line (line 2)
No description provided.