Compare commits

..

No commits in common. "develop" and "1.1.0" have entirely different histories.

4 changed files with 4 additions and 9 deletions

View File

@ -1,4 +0,0 @@
[[redirects]]
from = "/*"
to = "/index.html"
status = 200

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "educt-client", "name": "educt-client",
"version": "1.1.0", "version": "1.0.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "educt-client", "name": "educt-client",
"version": "1.1.0", "version": "1.0.0",
"dependencies": { "dependencies": {
"@chakra-ui/icons": "^1.0.16", "@chakra-ui/icons": "^1.0.16",
"@chakra-ui/react": "^1.6.10", "@chakra-ui/react": "^1.6.10",

View File

@ -1,6 +1,6 @@
{ {
"name": "educt-client", "name": "educt-client",
"version": "1.1.2", "version": "1.1.0",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "vite build",

View File

@ -26,7 +26,6 @@ import { observer } from 'mobx-react';
* Hooks * Hooks
*/ */
import { useFetchCourses, useFetchStat } from '@educt/hooks/queries'; import { useFetchCourses, useFetchStat } from '@educt/hooks/queries';
import { CourseStatusEnum } from '@educt/enums';
/** /**
* Main page * Main page
@ -36,7 +35,7 @@ const MainPage: React.FC<IPageProps> = () => {
userStore: { me }, userStore: { me },
onlineStore, onlineStore,
} = useRootStore(); } = useRootStore();
const { data: courses } = useFetchCourses({ limit: 3, status: CourseStatusEnum.PUBLISHED }); const { data: courses } = useFetchCourses({ limit: 3 });
const { data: stat } = useFetchStat(); const { data: stat } = useFetchStat();
if (me === null || courses === null || stat === null) return <LoadingPage />; if (me === null || courses === null || stat === null) return <LoadingPage />;