mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 13:20:43 +00:00
QQQ-32: added booleans, cleaned up error handling, fixed infinite loop on unauthorized login, removed all the login buttons, removed redundant qClient functions
This commit is contained in:
@ -21,6 +21,7 @@ import {Alert} from "@mui/material";
|
||||
import MDBox from "components/MDBox";
|
||||
import MDTypography from "components/MDTypography";
|
||||
import MDButton from "../../../components/MDButton";
|
||||
import QClient from "qqq/utils/QClient";
|
||||
|
||||
// Declaring props types for EntityForm
|
||||
interface Props
|
||||
@ -30,7 +31,7 @@ interface Props
|
||||
|
||||
function EntityForm({id}: Props): JSX.Element
|
||||
{
|
||||
const qController = new QController("");
|
||||
const qController = QClient.getInstance();
|
||||
const {tableName} = useParams();
|
||||
|
||||
const [validations, setValidations] = useState({});
|
||||
|
@ -38,7 +38,6 @@ import {
|
||||
} from "context";
|
||||
|
||||
// qqq
|
||||
import AuthenticationButton from "qqq/components/buttons/AuthenticationButton";
|
||||
|
||||
// Declaring prop types for Navbar
|
||||
interface Props
|
||||
@ -159,14 +158,6 @@ function Navbar({absolute, light, isMini}: Props): JSX.Element
|
||||
<MDInput label="Search here" />
|
||||
</MDBox>
|
||||
<MDBox color={light ? "white" : "inherit"}>
|
||||
<AuthenticationButton />
|
||||
{ /*
|
||||
<Link to="/authentication/sign-in/basic">
|
||||
<IconButton sx={navbarIconButton} size="small" disableRipple>
|
||||
<Icon sx={iconsStyle}>account_circle</Icon>
|
||||
</IconButton>
|
||||
</Link>
|
||||
*/ }
|
||||
<IconButton
|
||||
size="small"
|
||||
disableRipple
|
||||
|
@ -66,6 +66,9 @@ class DynamicFormUtils
|
||||
case QFieldType.BLOB:
|
||||
fieldType = "file";
|
||||
break;
|
||||
case QFieldType.BOOLEAN:
|
||||
fieldType = "checkbox";
|
||||
break;
|
||||
case QFieldType.TEXT:
|
||||
case QFieldType.HTML:
|
||||
case QFieldType.STRING:
|
||||
|
Reference in New Issue
Block a user