mirror of
https://github.com/sergeyyarkov/educt-client.git
synced 2026-10-11 18:29:15 +03:00
Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fd208a1455 | |||
| 22b2baba73 | |||
| 839c6581a7 | |||
| 0b4fd79ef9 | |||
| 029b818524 | |||
| 557f07e1ec | |||
| 52a2838888 | |||
| 2a57cbef4c | |||
| a80282b642 | |||
| cac02fda42 | |||
| 0568bad99d | |||
| d03e4ef98f | |||
| 7c5edcd190 | |||
| 80acb0ac7b | |||
| 1992cb7a90 |
4
netlify.toml
Normal file
4
netlify.toml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[[redirects]]
|
||||||
|
from = "/*"
|
||||||
|
to = "/index.html"
|
||||||
|
status = 200
|
||||||
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "educt-client",
|
"name": "educt-client",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "educt-client",
|
"name": "educt-client",
|
||||||
"version": "1.0.0",
|
"version": "1.1.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",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "educt-client",
|
"name": "educt-client",
|
||||||
"version": "1.1.0",
|
"version": "1.1.2",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
|||||||
@ -26,6 +26,7 @@ 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
|
||||||
@ -35,7 +36,7 @@ const MainPage: React.FC<IPageProps> = () => {
|
|||||||
userStore: { me },
|
userStore: { me },
|
||||||
onlineStore,
|
onlineStore,
|
||||||
} = useRootStore();
|
} = useRootStore();
|
||||||
const { data: courses } = useFetchCourses({ limit: 3 });
|
const { data: courses } = useFetchCourses({ limit: 3, status: CourseStatusEnum.PUBLISHED });
|
||||||
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 />;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user