Resolving issues
This commit is contained in:
parent
87ad19fa1a
commit
9a3e545cf0
@ -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";
|
||||
|
@ -13,7 +13,7 @@ function BaseLayout({ header, footer, children, className }: Props) {
|
||||
<div className={className}>
|
||||
<Header />
|
||||
|
||||
<main className="h-screen skewed:h-auto pt-5">{children}</main>
|
||||
<main>{children}</main>
|
||||
|
||||
<Footer />
|
||||
</div>
|
||||
|
@ -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 ? (
|
||||
<SyntaxHighlighter
|
||||
children={String(children).replace(/\n$/, "")}
|
||||
style={docco}
|
||||
style={dark}
|
||||
language={match[1]}
|
||||
PreTag="div"
|
||||
{...props}
|
||||
/>
|
||||
) : (
|
||||
<code className={className} {...props}>
|
||||
|
@ -10,8 +10,8 @@ const searchEndpoint = "/papers/search";
|
||||
async function search(request: string): Promise<SearchResults> {
|
||||
try {
|
||||
const response = await integratorApiClient.get<SearchResultsDTO>(
|
||||
// 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 });
|
||||
|
Loading…
x
Reference in New Issue
Block a user