Skip to content
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

Closed
wants to merge 3 commits into from

Conversation

rosschapman
Copy link
Collaborator

No description provided.

@@ -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";
Copy link
Collaborator Author

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";
Copy link
Collaborator

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";
Copy link
Collaborator

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
Copy link
Collaborator

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)

@rosschapman rosschapman closed this Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants