Merge branch 'release/1.1.1'

This commit is contained in:
Sergey Yarkov 2022-06-13 03:24:16 +03:00
commit 77f56c9b9b
3 changed files with 5 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "educt-client",
"version": "1.0.0",
"version": "1.1.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "educt-client",
"version": "1.0.0",
"version": "1.1.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.0",
"version": "1.1.1",
"scripts": {
"dev": "vite",
"build": "vite build",

View File

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