diff --git a/src/components/Article/ArticleParts/ArticleBreadcumbs.tsx b/src/components/Article/ArticleParts/ArticleBreadcumbs.tsx index dfb8945..ad451c1 100755 --- a/src/components/Article/ArticleParts/ArticleBreadcumbs.tsx +++ b/src/components/Article/ArticleParts/ArticleBreadcumbs.tsx @@ -1,8 +1,6 @@ -import React from "react"; import Breadcrumbs from "components/breadcrumbs"; import Logo from "components/Logo"; import classNames from "classnames"; -import Link from "components/Link"; type ArticleBreadcumbsProps = { emphasis?: "high" | "low"; diff --git a/src/components/BaseLayout.tsx b/src/components/BaseLayout.tsx index a770fce..2c143c9 100755 --- a/src/components/BaseLayout.tsx +++ b/src/components/BaseLayout.tsx @@ -13,7 +13,7 @@ function BaseLayout({ header, footer, children, className }: Props) {
-
{children}
+
{children}
diff --git a/src/components/Markdown.tsx b/src/components/Markdown.tsx index 5c5e4b9..8adbc9b 100644 --- a/src/components/Markdown.tsx +++ b/src/components/Markdown.tsx @@ -11,15 +11,13 @@ import remarkGfm from "remark-gfm"; /* -------------------------------------------------------------------------- */ import Typography from "./typography/Typography"; import Heading from "./typography/Heading"; -import Link from "./Link"; /* -------------------------------------------------------------------------- */ /* Code */ /* -------------------------------------------------------------------------- */ -import vsc from "react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus"; -import { darcula } from "react-syntax-highlighter/dist/esm/styles/prism"; -import docco from "react-syntax-highlighter/dist/esm/styles/prism"; -import { Prism as SyntaxHighlighter } from "react-syntax-highlighter"; +import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'; +import { dark } from 'react-syntax-highlighter/dist/esm/styles/prism'; +import Link from "./typography/Link"; export type Props = { markdown: string; @@ -50,10 +48,9 @@ const Markdown = ({ markdown }: Props) => { return !inline && match ? ( ) : ( diff --git a/src/searchResults/data/searchService.ts b/src/searchResults/data/searchService.ts index f34913c..56448f4 100755 --- a/src/searchResults/data/searchService.ts +++ b/src/searchResults/data/searchService.ts @@ -10,8 +10,8 @@ const searchEndpoint = "/papers/search"; async function search(request: string): Promise { try { const response = await integratorApiClient.get( - // searchEndpoint + `?query=` + request + `&limit=10&offset=0` - "https://run.mocky.io/v3/ea705665-2479-4039-8b81-412e011fc145" + searchEndpoint + `?query=` + request + `&limit=10&offset=0` + // "https://run.mocky.io/v3/ea705665-2479-4039-8b81-412e011fc145" ); const dto = response.data; return create({ data: dto.data, meta: dto.meta });