Skip to content

Commit

Permalink
updated file names
Browse files Browse the repository at this point in the history
  • Loading branch information
Prakhar-commits committed Sep 5, 2023
1 parent 29ec0e7 commit 71697e3
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NEXT_PUBLIC_BACKEND_URL = http://localhost:3000
NEXT_PUBLIC_BACKEND_URL = http://localhost:3001
35 changes: 35 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/displayTable/DataDisplay.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from "react";
import { RowType } from "@/types/types";
import TableRow from "./Row";
import { getData } from "@/utils/api";
import { getData } from "@/utils/forminputhandling";

type DataDisplayProps = {
getData: () => Promise<RowType[]>;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SessionCreator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import StudentDetails from "@/components/Steps/StudentDetails";
import { TestDetails } from "@/components/Steps/TestDetails";
import Timeline from "@/components/Steps/Timeline";
import { RowType } from "@/types/types";
import { postFormData } from "@/utils/api";
import { postFormData } from "@/utils/forminputhandling";

import { useState } from "react";

Expand Down
3 changes: 1 addition & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import DataDisplay from "@/components/displayTable/DataDisplay";
import { getData } from "@/utils/api";
import { get } from "http";
import { getData } from "@/utils/forminputhandling";
// import { Inter } from "next/font/google";
import Head from "next/head";
import { useRouter } from "next/router";
Expand Down
2 changes: 1 addition & 1 deletion src/utils/api.ts → src/utils/forminputhandling.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RowType } from "@/types/types";
import { instance } from "./axios";
import { instance } from "./rootclient";

// get data from the db
async function getData() {
Expand Down
File renamed without changes.

0 comments on commit 71697e3

Please sign in to comment.