From ed842bdc78294b03d0f5714abff6923c2a3efeb4 Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Sun, 6 Mar 2022 16:53:39 -0800 Subject: [PATCH] Remove worker and change to Link in auth --- client/components/auth/index.tsx | 6 +++--- client/lib/worker.ts | 19 ------------------- 2 files changed, 3 insertions(+), 22 deletions(-) delete mode 100644 client/lib/worker.ts diff --git a/client/components/auth/index.tsx b/client/components/auth/index.tsx index 80184e79..35cc86e3 100644 --- a/client/components/auth/index.tsx +++ b/client/components/auth/index.tsx @@ -1,5 +1,5 @@ import { FormEvent, useState } from 'react' -import { Button, Card, Input, Text } from '@geist-ui/core' +import { Button, Card, Input, Link, Text } from '@geist-ui/core' import styles from './auth.module.css' import { useRouter } from 'next/router' @@ -85,8 +85,8 @@ const Auth = ({ page }: { page: "signup" | "signin" }) => {
- {signingIn && Don't have an account? Sign up} - {!signingIn && Already have an account? Sign in} + {signingIn && Don't have an account? Sign up} + {!signingIn && Already have an account? Sign in}
{error && {error}} diff --git a/client/lib/worker.ts b/client/lib/worker.ts deleted file mode 100644 index e84db065..00000000 --- a/client/lib/worker.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { expose } from "comlink"; - -async function RemarkPipeline(disallowedElements, markdown) { - const markdownConverter = RemarkParseRemark() - .use([ - RemarkParse, - ...remarkPlugins, - [ - RehypeUnwrap, - { disallowedElements: disallowedElements, unwrapDisallowed: true }, - ], - ]) - .freeze(); - const parsed = markdownConverter.parse(markdown); - const transformed = await markdownConverter.run(parsed); - return transformed; -} - -expose(RemarkPipeline);