Skip to content

Commit

Permalink
pass build and unit test for quiz, try to push
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtan2000 committed Aug 7, 2024
1 parent 27633be commit a140ae5
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 14 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

3 changes: 1 addition & 2 deletions app/(main)/quiz/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use client';

import React, { useEffect, useState } from 'react';
import { useEffect, useState } from 'react';
import { Quiz } from '@/types';
import { QuizService } from '../../../service/QuizService';
import { Button } from 'primereact/button';
Expand Down
13 changes: 8 additions & 5 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
module.exports = {
presets: [
['@babel/preset-env', {targets: {node: 'current'}}],
'@babel/preset-typescript',
],
};
"presets": [
["next/babel", {
"preset-react": {
"runtime": "automatic"
}
}]
]
}
16 changes: 15 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,18 @@ const nextConfig = {
trailingSlash: false
}

module.exports = nextConfig
module.exports = {
nextConfig,
reactStrictMode: true,
swcMinify: true,
// If you have custom Babel configuration, ensure it includes the automatic runtime
babel: {
presets: [
["next/babel", {
"preset-react": {
"runtime": "automatic"
}
}]
]
}
}
2 changes: 1 addition & 1 deletion 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"primeicons": "^6.0.1",
"primereact": "^10.6.6",
"quill": "^2.0.2",
"react": "18.3.1",
"react": "^18.3.1",
"react-cookie": "^7.1.4",
"react-dom": "18.3.1",
"typescript": "5.5.2"
Expand Down
3 changes: 2 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export type {
AppMailProps,
AppMenuItem,
Questions,
Quiz,
UserProfile,
PKCECodeChallenge
};
};

0 comments on commit a140ae5

Please sign in to comment.