Skip to content

Commit

Permalink
see changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeparticle committed Nov 5, 2023
1 parent f7da5cf commit 1c19ce2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { render, screen } from "@testing-library/react";
import { describe, test } from "vitest";

import Clipboard from "components/RenderProps/Clipboard";
import ClipboardButton from "components/General/ClipboardButton";
import { Clipboard } from "components/RenderProps";
import { ClipboardButton } from "components/General";

describe("Clipboard Component", () => {
const testText = "Test Text";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from "@testing-library/react";
import ListSearchResults from "components/RenderProps/ListSearchResults";
import { ListSearchResults } from "components/RenderProps";
import { API_ERROR, API_LOADING, API_NO_DATA } from "data/constants";
import { MemoryRouter } from "react-router-dom";

Expand Down
3 changes: 1 addition & 2 deletions ui/src/components/RenderProps/ListSearchResults/helper.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { NewsType } from "components/General/ListItems/News/News";
import { ResourceType } from "components/General/ListItems/Resource/Resource";
import { ResourceType, NewsType } from "components/General";

const filteredNews = <T>(searchQuery: string, items: T[]) => {
if (searchQuery) {
Expand Down
7 changes: 2 additions & 5 deletions ui/src/components/RenderProps/ListSearchResults/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import style from "./ListSearchResults.module.scss";
import Search from "components/General/Search";
import { getCategories } from "components/General/Search/helper";
import List, { ListProps } from "components/RenderProps/List";
import { Search, Text, ResourceType, getCategories } from "components/General";
import { List, ListProps } from "components/RenderProps";
import { API_ERROR, API_NO_DATA } from "data/constants";
import Text from "components/General/Text/Text";
import { filteredNews, filteredResource } from "./helper";
import { ReactElement } from "react";
import { QUERY_KEY_NEWS } from "pages/Newsfeed/utils/constants";
import useParamsValue from "hooks/useParamsValue";
import { ResourceType } from "components/General/ListItems/Resource/Resource";

interface ListSearchResultsProps<T> extends ListProps<T> {
resourceName: string;
Expand Down
5 changes: 5 additions & 0 deletions ui/src/components/RenderProps/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export { default as Clipboard } from "./Clipboard";
export { default as List } from "./List";
export { default as ListSearchResults } from "./ListSearchResults";

export type { ListProps, ListItemProps } from "./List";

0 comments on commit 1c19ce2

Please sign in to comment.