mirror of
https://gitlab.com/comunic/comunicconsole
synced 2025-07-07 10:32:50 +00:00
Start React & Material UI update
This commit is contained in:
@ -14,8 +14,8 @@ import {
|
||||
TextField,
|
||||
Snackbar,
|
||||
IconButton,
|
||||
} from "@material-ui/core";
|
||||
import { Close } from "@material-ui/icons";
|
||||
} from "@mui/material";
|
||||
import { Close } from "@mui/icons-material";
|
||||
import React, { FormEvent } from "react";
|
||||
|
||||
let cache: ApplicationDialogsProvider;
|
||||
@ -116,7 +116,7 @@ export class ApplicationDialogsProvider extends React.Component<
|
||||
}
|
||||
|
||||
handleCloseSnackbar(
|
||||
_event: React.SyntheticEvent | React.MouseEvent,
|
||||
_event: React.SyntheticEvent | React.MouseEvent | Event,
|
||||
reason?: string
|
||||
) {
|
||||
if (reason === "clickaway") {
|
||||
@ -216,7 +216,7 @@ export class ApplicationDialogsProvider extends React.Component<
|
||||
</DialogContentText>
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
<Button onClick={this.handleCloseAlert} color="default">
|
||||
<Button onClick={this.handleCloseAlert} color="primary">
|
||||
OK
|
||||
</Button>
|
||||
</DialogActions>
|
||||
@ -265,10 +265,10 @@ export class ApplicationDialogsProvider extends React.Component<
|
||||
</DialogContentText>
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
<Button onClick={this.rejectConfirm} color="default">
|
||||
<Button onClick={this.rejectConfirm} color="secondary">
|
||||
Cancel
|
||||
</Button>
|
||||
<Button onClick={this.acceptConfirm} color="default">
|
||||
<Button onClick={this.acceptConfirm} color="secondary">
|
||||
Confirm
|
||||
</Button>
|
||||
</DialogActions>
|
||||
@ -305,12 +305,12 @@ export class ApplicationDialogsProvider extends React.Component<
|
||||
</form>
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
<Button onClick={this.cancelInput} color="default">
|
||||
<Button onClick={this.cancelInput} color="secondary">
|
||||
Cancel
|
||||
</Button>
|
||||
<Button
|
||||
onClick={this.confirmInput}
|
||||
color="default"
|
||||
color="secondary"
|
||||
disabled={!this.isInputValid}
|
||||
>
|
||||
OK
|
||||
|
Reference in New Issue
Block a user