diff --git a/src/components/Article/ArticleParts/InteractionButtons/ArticleInteractionButtons.tsx b/src/components/Article/ArticleParts/InteractionButtons/ArticleInteractionButtons.tsx index c6bd1fd..1de4324 100755 --- a/src/components/Article/ArticleParts/InteractionButtons/ArticleInteractionButtons.tsx +++ b/src/components/Article/ArticleParts/InteractionButtons/ArticleInteractionButtons.tsx @@ -89,68 +89,43 @@ export function ArticleInteractionButtons({ hover:bg-blue-500 active:bg-blue-700 focus:shadow-lg shadow-blue-500 - p-2 rounded" + p-2 rounded + flex flex-row space-x-2 + " > - {emphasis === "high" && {t("readFile")}} + {emphasis === "high" && {t("readFile")}} ); /* ----------------------------- Download button ---------------------------- */ const downLoadButton = ( - ); - /* ------------------------------ Share button ------------------------------ */ + /* ------------------------------- Cite button ------------------------------ */ - const shareButton = ( - ); - const fileInteractionButtons = interactionButtonsStore.map((button) => { - return button.title === "Read file" ? ( - - - - ) : ( - - ); - }); - return ( -
- {emphasis === "low" && !children ? abstractButton : null} +
+ {emphasis != "high" && abstractButton} {readFileButton} - {children ? children : fileInteractionButtons} - + {downLoadButton} + {citeButton} +
); } diff --git a/src/components/Article/ArticleParts/InteractionButtons/ArticleShareButton.tsx b/src/components/Article/ArticleParts/InteractionButtons/ArticleShareButton.tsx index fca7da8..4a5c734 100644 --- a/src/components/Article/ArticleParts/InteractionButtons/ArticleShareButton.tsx +++ b/src/components/Article/ArticleParts/InteractionButtons/ArticleShareButton.tsx @@ -35,11 +35,11 @@ export function ShareButton({ emphasis, linktoCopy }: Props) { return ( - diff --git a/src/pages/SearchResultsPage.tsx b/src/pages/SearchResultsPage.tsx index e6d3f35..00f7833 100644 --- a/src/pages/SearchResultsPage.tsx +++ b/src/pages/SearchResultsPage.tsx @@ -3,9 +3,6 @@ import BaseLayout from "components/BaseLayout"; import { SearchSection } from "components/SearchSection"; import { ColumnLayout } from "components/layouts/ThreeColumn/ColumnLayout"; import { SearchResultSection } from "components/SearchResultsSection"; -import { useSearchStoreImplementation } from "searchResults/data/searchStoreImplementation"; -import { useSearchViewModel } from "searchResults/controller/searchResultsViewModel"; -import { Loader } from "components/Loader/Loader"; import Fiter from "components/Filters/Filter"; export const SearchResultsPage = () => { @@ -14,7 +11,7 @@ export const SearchResultsPage = () => { -
+
diff --git a/src/searchResults/data/searchService.ts b/src/searchResults/data/searchService.ts index dbf0cf6..0ddc137 100755 --- a/src/searchResults/data/searchService.ts +++ b/src/searchResults/data/searchService.ts @@ -10,7 +10,7 @@ const searchEndpoint = "/papers/search"; async function search(request: string): Promise { try { const response = await integratorApiClient.get( - // searchEndpoint + `?query=` + request + `&limit=10&offset=0` + // searchEndpoint + `?query=` + request "https://run.mocky.io/v3/ea705665-2479-4039-8b81-412e011fc145" ); const dto = response.data;