mirror of
https://github.com/sergeyyarkov/educt-client.git
synced 2026-10-11 18:29:15 +03:00
Compare commits
No commits in common. "develop" and "1.1.0" have entirely different histories.
@ -1,4 +0,0 @@
|
||||
[[redirects]]
|
||||
from = "/*"
|
||||
to = "/index.html"
|
||||
status = 200
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@ -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",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "educt-client",
|
||||
"version": "1.1.2",
|
||||
"version": "1.1.0",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
|
||||
@ -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 />;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user