From 6b4637ee5430b3ec699b1a19a95c9df811c03722 Mon Sep 17 00:00:00 2001 From: Prakhar Date: Wed, 11 Oct 2023 11:46:24 +0530 Subject: [PATCH 1/3] updated the readme --- README.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/README.md b/README.md index 35dabc7..24d682a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ First, install dependencies (`npm run build`) run the development server: ```bash - npm run dev # or yarn dev @@ -13,16 +12,6 @@ pnpm dev Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. -You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file. - -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. - ## Project An interface to create quizzes for the Avanti Fellows Quiz Engine, and remove the dependence on Google Sheets completely. From 539f06321de621d9a3e78e0a111594fbd8077ffe Mon Sep 17 00:00:00 2001 From: Prakhar Date: Sun, 15 Oct 2023 18:35:03 +0530 Subject: [PATCH 2/3] file renamed --- src/components/displayTable/DataDisplay.tsx | 2 +- src/pages/SessionCreator.tsx | 2 +- src/pages/index.tsx | 2 +- src/utils/forminputhandling.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/displayTable/DataDisplay.tsx b/src/components/displayTable/DataDisplay.tsx index e9a28ea..eabf1ba 100644 --- a/src/components/displayTable/DataDisplay.tsx +++ b/src/components/displayTable/DataDisplay.tsx @@ -1,7 +1,7 @@ import React, { useState, useEffect } from "react"; import { RowType } from "@/types/types"; import TableRow from "./Row"; -import { getData } from "@/utils/forminputhandling"; +import { getData } from "@/utils/FormInputHandling"; type DataDisplayProps = { getData: () => Promise; diff --git a/src/pages/SessionCreator.tsx b/src/pages/SessionCreator.tsx index a133f26..f3a32b2 100644 --- a/src/pages/SessionCreator.tsx +++ b/src/pages/SessionCreator.tsx @@ -4,7 +4,7 @@ import { TestDetails } from "@/components/Steps/TestDetails"; import Timeline from "@/components/Steps/Timeline"; // import { SessionData } from "@/types/FormTypes"; import { RowType } from "@/types/types"; -import { postFormData } from "@/utils/forminputhandling"; +import { postFormData } from "@/utils/FormInputHandling"; import { useRouter } from "next/router"; import { useState } from "react"; diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 8c5cd97..b82e67a 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,5 +1,5 @@ import DataDisplay from "@/components/displayTable/DataDisplay"; -import { getData } from "@/utils/forminputhandling"; +import { getData } from "@/utils/FormInputHandling"; // import { Inter } from "next/font/google"; import Head from "next/head"; import { useRouter } from "next/router"; diff --git a/src/utils/forminputhandling.ts b/src/utils/forminputhandling.ts index b385d57..495d3e7 100644 --- a/src/utils/forminputhandling.ts +++ b/src/utils/forminputhandling.ts @@ -1,5 +1,5 @@ import { RowType } from "@/types/types"; -import { instance } from "./rootclient"; +import { instance } from "./RootClient"; // get data from the db async function getData() { From f775e30efbad8cb56cf099668e8d9d86cee97834 Mon Sep 17 00:00:00 2001 From: Prakhar Date: Sun, 15 Oct 2023 18:38:59 +0530 Subject: [PATCH 3/3] updated install instruction --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 24d682a..b322d22 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Getting Started -First, install dependencies (`npm run build`) run the development server: +First, install dependencies (`npm install`) run the development server: ```bash npm run dev