#245: Started work on a new, simple tutorial system

This commit is contained in:
frikky
2022-01-02 18:20:43 +01:00
parent 1b0d517fec
commit 5123f5ce36
13 changed files with 459 additions and 359 deletions
+6 -2
View File
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react";
import { makeStyles } from "@material-ui/styles";
import { useTheme } from "@material-ui/core/styles";
import { Link } from "react-router-dom";
import { useNavigate, Link } from "react-router-dom";
import {
FormControl,
@@ -92,6 +92,8 @@ const Admin = (props) => {
var to_be_copied = "";
const theme = useTheme();
const classes = useStyles();
let navigate = useNavigate();
const [firstRequest, setFirstRequest] = React.useState(true);
const [orgRequest, setOrgRequest] = React.useState(true);
const [modalUser, setModalUser] = React.useState({});
@@ -1395,7 +1397,9 @@ const Admin = (props) => {
console.log("Should get apps for categories.");
}
props.history.push(`/admin?tab=${views[newValue]}`)
console.log("PROPS: ", props)
navigate(`/admin?tab=${views[newValue]}`)
setModalUser({});
};