Compare commits

...

15 Commits

Author SHA1 Message Date
fd208a1455 Merge tag 'v1.1.2' into develop
Release v1.1.2
2022-06-13 14:14:55 +03:00
22b2baba73 Merge branch 'release/1.1.2' 2022-06-13 14:14:44 +03:00
839c6581a7 bump ver 2022-06-13 14:14:29 +03:00
0b4fd79ef9 netlify conf 2022-06-13 14:13:50 +03:00
029b818524 netlify conf 2022-06-13 03:53:06 +03:00
557f07e1ec Merge tag 'v1.1.1' into develop
Release v1.1.1
2022-06-13 03:24:25 +03:00
52a2838888 Merge branch 'release/1.1.1' 2022-06-13 03:24:16 +03:00
2a57cbef4c bumb ver 2022-06-13 03:24:04 +03:00
a80282b642 . 2022-06-13 03:23:05 +03:00
cac02fda42 del gh-pages 2022-06-13 03:21:16 +03:00
0568bad99d . 2022-06-13 03:20:44 +03:00
d03e4ef98f gh-pages 2022-06-13 03:00:06 +03:00
7c5edcd190 feat: added param on fetching courses 2022-06-13 02:35:25 +03:00
80acb0ac7b pck-lock 2022-06-13 00:59:32 +03:00
1992cb7a90 Merge tag '1.1.0' into develop
Release v1.1.0
2022-06-12 20:42:44 +03:00
4 changed files with 9 additions and 4 deletions

4
netlify.toml Normal file
View File

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

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.2",
"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 />;