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",
"version": "1.1.0",
"version": "1.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "educt-client",
"version": "1.1.0",
"version": "1.0.0",
"dependencies": {
"@chakra-ui/icons": "^1.0.16",
"@chakra-ui/react": "^1.6.10",

View File

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

View File

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