Skip to content

Commit

Permalink
Fixed import statements in various files
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanueposu committed May 9, 2024
1 parent f7c66cb commit 38eb256
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
11 changes: 11 additions & 0 deletions trivia-forge/frontend/package-lock.json

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

1 change: 1 addition & 0 deletions trivia-forge/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dependencies": {
"axios": "^1.6.8",
"bootstrap": "^5.3.3",
"node-datetime": "^2.1.2",
"openai": "^4.38.3",
"react": "^18.2.0",
"react-bootstrap": "^2.10.2",
Expand Down
2 changes: 1 addition & 1 deletion trivia-forge/frontend/src/Components/Questions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import Choices from "../Components/Choices";
import { Card } from "react-bootstrap";

import { Question } from "../Model/Question";
import { Question } from "../Models/Question";

function Questions({ data }) {
let choices = data.choices;
Expand Down
8 changes: 4 additions & 4 deletions trivia-forge/frontend/src/Pages/TriviaGenPage.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React, { useState } from "react"; // variables that cause the component to re-render when they change
import OpenAI from "openai";
import { Game } from "../Model/Game";
import { Game } from "../Models/Game";
import { useNavigate } from "react-router-dom";
import { Question } from "../Model/Question";
import { Choice } from "../Model/Choice";
import { Category } from "../Model/Category";
import { Question } from "../Models/Question";
import { Choice } from "../Models/Choice";
import { Category } from "../Models/Category";
import { Card } from "react-bootstrap";


Expand Down
6 changes: 3 additions & 3 deletions trivia-forge/frontend/src/Services/TF-db_services.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from 'axios';
import User from '../Models/User';
import Game from '../Models/Game';
import Question from '../Models/Question';
import {User} from '../Models/User';
import {Game} from '../Models/Game';
import {Question} from '../Models/Question';

const API_URL = 'http://localhost:5000';

Expand Down

0 comments on commit 38eb256

Please sign in to comment.