mirror of
https://gitlab.com/comunic/comunicconsole
synced 2025-07-06 18:12:50 +00:00
Can update admin general settings
This commit is contained in:
@ -17,6 +17,7 @@ import { useParams } from "react-router-dom";
|
||||
import { AccountHelper, AdminAccount } from "../../helpers/AccountHelper";
|
||||
import { AsyncWidget } from "../widgets/AsyncWidget";
|
||||
import { matAlert, snackbar } from "../widgets/DialogsProvider";
|
||||
import { PageTitle } from "../widgets/PageTitle";
|
||||
|
||||
export function AccountSettingsRoute() {
|
||||
let params: any = useParams();
|
||||
@ -62,9 +63,14 @@ class AccountSettingsRouteInner extends React.Component<
|
||||
|
||||
build() {
|
||||
return (
|
||||
<Grid container spacing={2}>
|
||||
<GeneralSettings admin={this.state.account}></GeneralSettings>
|
||||
</Grid>
|
||||
<div>
|
||||
<PageTitle name="Account settings"></PageTitle>
|
||||
<Grid container spacing={2}>
|
||||
<GeneralSettings
|
||||
admin={this.state.account}
|
||||
></GeneralSettings>
|
||||
</Grid>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -149,7 +155,7 @@ class GeneralSettings extends React.Component<
|
||||
|
||||
function SettingsSection(p: { title: string; children?: React.ReactNode }) {
|
||||
return (
|
||||
<Grid item xs={6} spacing={2}>
|
||||
<Grid item sm={6} spacing={2}>
|
||||
<Paper>
|
||||
<Typography variant="h5" style={{ padding: "10px 10px " }}>
|
||||
General settings
|
||||
|
Reference in New Issue
Block a user