From 41ed505362e12bb17e321a819887560a259b89dd Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Sun, 20 Nov 2022 20:54:34 -0800 Subject: [PATCH] fix preview rendering on /home, fix signout redirect --- client/app/(auth)/components/index.tsx | 16 ++++++++++------ client/app/components/button/index.tsx | 9 ++++----- client/app/components/header/header.module.css | 5 +++++ client/app/components/header/index.tsx | 9 ++++++--- client/app/components/input/index.tsx | 2 +- client/app/components/input/input.module.css | 4 ---- client/pages/api/file/get-html.ts | 4 ++-- 7 files changed, 28 insertions(+), 21 deletions(-) diff --git a/client/app/(auth)/components/index.tsx b/client/app/(auth)/components/index.tsx index 0aab279f..a00c7854 100644 --- a/client/app/(auth)/components/index.tsx +++ b/client/app/(auth)/components/index.tsx @@ -3,9 +3,11 @@ import { useState } from "react" import styles from "./auth.module.css" import Link from "../../components/link" -import { Button, Input, Note } from "@geist-ui/core/dist" import { signIn } from "next-auth/react" import { Github as GithubIcon } from "@geist-ui/icons" +import Input from "@components/input" +import Button from "@components/button" +import Note from "@components/note" const Auth = ({ page, @@ -50,7 +52,7 @@ const Auth = ({ {/* sign in with github */} {requiresServerPassword && ( @@ -62,11 +64,13 @@ const Auth = ({ /> )} diff --git a/client/app/components/input/index.tsx b/client/app/components/input/index.tsx index 8c6d3504..0c3faed7 100644 --- a/client/app/components/input/index.tsx +++ b/client/app/components/input/index.tsx @@ -31,7 +31,7 @@ const Input = React.forwardRef(