updated the dialog actions for the submit and cancel buttons
This commit is contained in:
parent
f2cf950a6b
commit
1982a93bf0
6 changed files with 45 additions and 29 deletions
|
|
@ -32,6 +32,7 @@ import { quack } from "protobuf-ts/quack";
|
|||
import LinearMutationBuilder from "common/LinearMutationBuilder";
|
||||
import { makeStyles } from "@mui/styles";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import CancelSubmit from "common/CancelSubmit";
|
||||
|
||||
interface TabPanelProps {
|
||||
children?: React.ReactNode;
|
||||
|
|
@ -584,17 +585,18 @@ export default function DeviceSettings(props: Props) {
|
|||
|
||||
const actions = () => {
|
||||
return (
|
||||
<Grid container justifyContent="space-between" direction="row">
|
||||
<Grid size={{ xs: 5 }}>
|
||||
<Grid container justifyContent="space-between" direction="row" width={"100%"}>
|
||||
<Grid>
|
||||
{canRemove() && <DeleteButton onClick={confirmRemoveDevice}>Delete</DeleteButton>}
|
||||
</Grid>
|
||||
<Grid size={{ xs: 7 }} container justifyContent="flex-end">
|
||||
<Button onClick={close} color="primary">
|
||||
<Grid container justifyContent="flex-end">
|
||||
<CancelSubmit onSubmit={submitSettings} onCancel={close}/>
|
||||
{/* <Button onClick={close} color="primary">
|
||||
Cancel
|
||||
</Button>
|
||||
<Button onClick={submitSettings} color="primary" disabled={!isFormValid() || !canEdit}>
|
||||
Submit
|
||||
</Button>
|
||||
</Button> */}
|
||||
</Grid>
|
||||
</Grid>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue