Fixed another bug with mui/react
This commit is contained in:
@@ -618,10 +618,10 @@ const ConfigureWorkflow = (props) => {
|
|||||||
/>
|
/>
|
||||||
*/}
|
*/}
|
||||||
{action.must_authenticate ?
|
{action.must_authenticate ?
|
||||||
<Button
|
<Button
|
||||||
fullWidth
|
fullWidth
|
||||||
variant="contained"
|
variant="contained"
|
||||||
disabled={action.auth_done}
|
disabled={action.auth_done}
|
||||||
style={{
|
style={{
|
||||||
flex: 1,
|
flex: 1,
|
||||||
textTransform: "none",
|
textTransform: "none",
|
||||||
@@ -1084,7 +1084,6 @@ const ConfigureWorkflow = (props) => {
|
|||||||
</Button>
|
</Button>
|
||||||
*/}
|
*/}
|
||||||
<Button
|
<Button
|
||||||
color="textSecondary"
|
|
||||||
variant={"outlined"}
|
variant={"outlined"}
|
||||||
style={{}}
|
style={{}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|||||||
@@ -1,14 +1,17 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { createTheme, adaptV4Theme } from "@mui/material/styles";
|
import { createTheme, adaptV4Theme } from "@mui/material/styles";
|
||||||
|
|
||||||
const theme = createTheme(adaptV4Theme({
|
//const theme = createTheme(adaptV4Theme({
|
||||||
|
const theme = createTheme({
|
||||||
palette: {
|
palette: {
|
||||||
|
main: "#F86743",
|
||||||
primary: {
|
primary: {
|
||||||
main: "#F86743",
|
main: "#F86743",
|
||||||
contrastText: "#ffffff",
|
contrastText: "#ffffff",
|
||||||
},
|
},
|
||||||
secondary: {
|
secondary: {
|
||||||
main: "#e8eaf6",
|
main: "#e8eaf6",
|
||||||
|
contrastText: "#000000",
|
||||||
},
|
},
|
||||||
text: {
|
text: {
|
||||||
secondary: "rgba(255,255,255,0.7)",
|
secondary: "rgba(255,255,255,0.7)",
|
||||||
@@ -85,6 +88,6 @@ const theme = createTheme(adaptV4Theme({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}));
|
});
|
||||||
|
|
||||||
export default theme;
|
export default theme;
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import { useInterval } from "react-powerhooks";
|
|||||||
|
|
||||||
import { v4 as uuidv4 } from "uuid";
|
import { v4 as uuidv4 } from "uuid";
|
||||||
import { useNavigate, Link, useParams } from "react-router-dom";
|
import { useNavigate, Link, useParams } from "react-router-dom";
|
||||||
// import { Prompt } from "react-router"; // FIXME
|
|
||||||
import { useBeforeunload } from "react-beforeunload";
|
import { useBeforeunload } from "react-beforeunload";
|
||||||
import ReactJson from "react-json-view";
|
import ReactJson from "react-json-view";
|
||||||
import { NestedMenuItem } from "mui-nested-menu"
|
import { NestedMenuItem } from "mui-nested-menu"
|
||||||
@@ -68,11 +67,8 @@ import {
|
|||||||
ListItemAvatar,
|
ListItemAvatar,
|
||||||
Badge,
|
Badge,
|
||||||
Autocomplete,
|
Autocomplete,
|
||||||
} from "@mui/material";
|
|
||||||
|
|
||||||
import {
|
|
||||||
AvatarGroup,
|
AvatarGroup,
|
||||||
} from "@mui/material"
|
} from "@mui/material";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Folder as FolderIcon,
|
Folder as FolderIcon,
|
||||||
@@ -357,34 +353,6 @@ export function removeParam(key, sourceURL) {
|
|||||||
return rtn;
|
return rtn;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
const useStyles = makeStyles({
|
|
||||||
notchedOutline: {
|
|
||||||
borderColor: "#f85a3e !important",
|
|
||||||
},
|
|
||||||
root: {
|
|
||||||
"& .MuiAutocomplete-listbox": {
|
|
||||||
border: "2px solid #f85a3e",
|
|
||||||
color: "white",
|
|
||||||
fontSize: 18,
|
|
||||||
"& li:nth-child(even)": {
|
|
||||||
backgroundColor: "#CCC",
|
|
||||||
},
|
|
||||||
"& li:nth-child(odd)": {
|
|
||||||
backgroundColor: "#FFF",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
inputRoot: {
|
|
||||||
color: "white",
|
|
||||||
// This matches the specificity of the default styles at https://github.com/mui-org/material-ui/blob/v4.11.3/packages/material-ui-lab/src/Autocomplete/Autocomplete.js#L90
|
|
||||||
"&:hover .MuiOutlinedInput-notchedOutline": {
|
|
||||||
borderColor: "#f86a3e",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
*/
|
|
||||||
|
|
||||||
const splitter = "|~|";
|
const splitter = "|~|";
|
||||||
const svgSize = 24;
|
const svgSize = 24;
|
||||||
//const referenceUrl = "https://shuffler.io/functions/webhooks/"
|
//const referenceUrl = "https://shuffler.io/functions/webhooks/"
|
||||||
@@ -16457,9 +16425,6 @@ const AngularWorkflow = (defaultprops) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{/* Removed due to missing react router features
|
|
||||||
<Prompt when={!lastSaved} message={unloadText} />
|
|
||||||
*/}
|
|
||||||
{loadedCheck}
|
{loadedCheck}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user