1
0
Fork 0
mirror of https://github.com/etkecc/synapse-admin.git synced 2025-05-06 02:52:54 +03:00

Move threepids in UserEdit to a separate tab ()

Separates information into individual tabs for a better overview.
This commit is contained in:
Dirk Klimpel 2020-07-06 12:35:26 +02:00 committed by GitHub
parent 2fc75cd6fc
commit 8282a3caf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions
src/components

View file

@ -1,5 +1,6 @@
import React, { Fragment } from "react";
import PersonPinIcon from "@material-ui/icons/PersonPin";
import ContactMailIcon from "@material-ui/icons/ContactMail";
import SettingsInputComponentIcon from "@material-ui/icons/SettingsInputComponent";
import {
ArrayInput,
@ -172,6 +173,12 @@ export const UserEdit = props => (
}}
/>
<TextField source="consent_version" />
</FormTab>
<FormTab
label="resources.users.threepid"
icon={<ContactMailIcon />}
path="threepid"
>
<ArrayInput source="threepids">
<SimpleFormIterator>
<SelectInput
@ -188,6 +195,7 @@ export const UserEdit = props => (
<FormTab
label="resources.connections.name"
icon={<SettingsInputComponentIcon />}
path="connections"
>
<ReferenceField
reference="connections"