Remove worker and change <a> to Link in auth
This commit is contained in:
parent
c34269400a
commit
ed842bdc78
2 changed files with 3 additions and 22 deletions
|
@ -1,5 +1,5 @@
|
||||||
import { FormEvent, useState } from 'react'
|
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 styles from './auth.module.css'
|
||||||
import { useRouter } from 'next/router'
|
import { useRouter } from 'next/router'
|
||||||
|
|
||||||
|
@ -85,8 +85,8 @@ const Auth = ({ page }: { page: "signup" | "signin" }) => {
|
||||||
<Button type="success" ghost htmlType="submit">{signingIn ? 'Sign In' : 'Sign Up'}</Button>
|
<Button type="success" ghost htmlType="submit">{signingIn ? 'Sign In' : 'Sign Up'}</Button>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.formGroup}>
|
<div className={styles.formGroup}>
|
||||||
{signingIn && <Text>Don't have an account? <a href="/signup" >Sign up</a></Text>}
|
{signingIn && <Text>Don't have an account? <Link color href="/signup" >Sign up</Link></Text>}
|
||||||
{!signingIn && <Text>Already have an account? <a href="/signin" >Sign in</a></Text>}
|
{!signingIn && <Text>Already have an account? <Link color href="/signin" >Sign in</Link></Text>}
|
||||||
</div>
|
</div>
|
||||||
{error && <Text type='error'>{error}</Text>}
|
{error && <Text type='error'>{error}</Text>}
|
||||||
</Card>
|
</Card>
|
||||||
|
|
|
@ -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);
|
|
Loading…
Add table
Reference in a new issue