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 Breadcrumbs from "components/breadcrumbs";
|
||||||
import Logo from "components/Logo";
|
import Logo from "components/Logo";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
import Link from "components/Link";
|
|
||||||
|
|
||||||
type ArticleBreadcumbsProps = {
|
type ArticleBreadcumbsProps = {
|
||||||
emphasis?: "high" | "low";
|
emphasis?: "high" | "low";
|
||||||
|
@ -13,7 +13,7 @@ function BaseLayout({ header, footer, children, className }: Props) {
|
|||||||
<div className={className}>
|
<div className={className}>
|
||||||
<Header />
|
<Header />
|
||||||
|
|
||||||
<main className="h-screen skewed:h-auto pt-5">{children}</main>
|
<main>{children}</main>
|
||||||
|
|
||||||
<Footer />
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,15 +11,13 @@ import remarkGfm from "remark-gfm";
|
|||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
import Typography from "./typography/Typography";
|
import Typography from "./typography/Typography";
|
||||||
import Heading from "./typography/Heading";
|
import Heading from "./typography/Heading";
|
||||||
import Link from "./Link";
|
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* Code */
|
/* Code */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
import vsc from "react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus";
|
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
|
||||||
import { darcula } from "react-syntax-highlighter/dist/esm/styles/prism";
|
import { dark } from 'react-syntax-highlighter/dist/esm/styles/prism';
|
||||||
import docco from "react-syntax-highlighter/dist/esm/styles/prism";
|
import Link from "./typography/Link";
|
||||||
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
|
|
||||||
|
|
||||||
export type Props = {
|
export type Props = {
|
||||||
markdown: string;
|
markdown: string;
|
||||||
@ -50,10 +48,9 @@ const Markdown = ({ markdown }: Props) => {
|
|||||||
return !inline && match ? (
|
return !inline && match ? (
|
||||||
<SyntaxHighlighter
|
<SyntaxHighlighter
|
||||||
children={String(children).replace(/\n$/, "")}
|
children={String(children).replace(/\n$/, "")}
|
||||||
style={docco}
|
style={dark}
|
||||||
language={match[1]}
|
language={match[1]}
|
||||||
PreTag="div"
|
PreTag="div"
|
||||||
{...props}
|
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<code className={className} {...props}>
|
<code className={className} {...props}>
|
||||||
|
@ -10,8 +10,8 @@ const searchEndpoint = "/papers/search";
|
|||||||
async function search(request: string): Promise<SearchResults> {
|
async function search(request: string): Promise<SearchResults> {
|
||||||
try {
|
try {
|
||||||
const response = await integratorApiClient.get<SearchResultsDTO>(
|
const response = await integratorApiClient.get<SearchResultsDTO>(
|
||||||
// searchEndpoint + `?query=` + request + `&limit=10&offset=0`
|
searchEndpoint + `?query=` + request + `&limit=10&offset=0`
|
||||||
"https://run.mocky.io/v3/ea705665-2479-4039-8b81-412e011fc145"
|
// "https://run.mocky.io/v3/ea705665-2479-4039-8b81-412e011fc145"
|
||||||
);
|
);
|
||||||
const dto = response.data;
|
const dto = response.data;
|
||||||
return create({ data: dto.data, meta: dto.meta });
|
return create({ data: dto.data, meta: dto.meta });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user