From 95039a2754662e5455396f36ed3c7e007c1f7f48 Mon Sep 17 00:00:00 2001 From: Rupaak Srinivas Date: Thu, 20 Jun 2024 15:38:30 +0530 Subject: [PATCH] fix: misc bug fix (#2) * style: revert to old scrollbar * fix: fonts and status update bug in spons form --- src/app/layout.tsx | 6 +++++- src/app/page.tsx | 2 -- src/components/SponsorshipForm.tsx | 2 +- src/styles/globals.css | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index d883894..e117099 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -10,10 +10,14 @@ import { Input, PasswordInput, } from "@mantine/core"; +import { Inter } from "next/font/google"; import "react-toastify/dist/ReactToastify.css"; import { Suspense } from "react"; import Loading from "./loading"; +const inter = Inter({subsets: ["latin"]}); + + export default function RootLayout({ children, }: Readonly<{ @@ -105,7 +109,7 @@ export default function RootLayout({ gibspons - + }>{children} diff --git a/src/app/page.tsx b/src/app/page.tsx index 348e31d..ddb056e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,12 +1,10 @@ /* eslint-disable @next/next/no-img-element */ "use client"; import Image from "next/image"; -// import { Outfit } from "next/font/google"; import Navbar from "../components/Navbar"; import Footer from "../components/Footer"; import Link from "next/link"; -// const outfit = Outfit({ subsets: ["latin"] }); export default function Home() { return ( diff --git a/src/components/SponsorshipForm.tsx b/src/components/SponsorshipForm.tsx index 210fe09..f4bf6ec 100644 --- a/src/components/SponsorshipForm.tsx +++ b/src/components/SponsorshipForm.tsx @@ -124,7 +124,7 @@ export default function ModifySponsorship({ toast.error("Please select a PoC to update status!!"); return; } - if (form.values.isAccepted) { + if (form.values.status === "Accepted") { data = { ...data, additional: values.additional, diff --git a/src/styles/globals.css b/src/styles/globals.css index 7ee1a89..6847788 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -20,7 +20,7 @@ } /* BEGIN: Custom Scrollbar */ -::-webkit-scrollbar { +/* ::-webkit-scrollbar { width: 5px; } @@ -35,4 +35,4 @@ &:hover { background-color: #a0a0a0; } -} \ No newline at end of file +} */ \ No newline at end of file