diff --git a/src/App.js b/src/App.js index 9f3ed8e..238d13b 100644 --- a/src/App.js +++ b/src/App.js @@ -5,7 +5,6 @@ import authProvider from "./synapse/authProvider"; import dataProvider from "./synapse/dataProvider"; import { UserList, UserCreate, UserEdit } from "./components/users"; import { RoomList } from "./components/rooms"; -import { ConnectionsShow } from "./components/connections"; import LoginPage from "./components/LoginPage"; import UserIcon from "@material-ui/icons/Group"; import { ViewListIcon as RoomIcon } from "@material-ui/icons/ViewList"; @@ -37,7 +36,7 @@ const App = () => ( icon={UserIcon} /> - + ); diff --git a/src/components/connections.js b/src/components/connections.js deleted file mode 100644 index e838d2b..0000000 --- a/src/components/connections.js +++ /dev/null @@ -1,43 +0,0 @@ -import React from "react"; -import { - Datagrid, - Show, - SimpleForm, - TextField, - ArrayField, - DateField, -} from "react-admin"; - -export const ConnectionsShow = props => ( - - - - - - - - - - - - -); diff --git a/src/components/users.js b/src/components/users.js index 6ed5d0e..d8fbcc8 100644 --- a/src/components/users.js +++ b/src/components/users.js @@ -1,4 +1,6 @@ import React from "react"; +import PhoneIcon from "@material-ui/icons/Phone"; +import PersonPinIcon from "@material-ui/icons/PersonPin"; import { Datagrid, Create, @@ -14,7 +16,10 @@ import { TextInput, ReferenceField, regex, - ShowButton, + TabbedForm, + FormTab, + ArrayField, + DateField, } from "react-admin"; const UserFilter = props => ( @@ -57,7 +62,6 @@ export const UserList = props => ( - ); @@ -81,12 +85,44 @@ export const UserCreate = props => ( export const UserEdit = props => ( - - - - - - - + + }> + + + + + + + }> + + + + + + + + + + + ); diff --git a/src/i18n/de.js b/src/i18n/de.js index b479911..0a827b8 100644 --- a/src/i18n/de.js +++ b/src/i18n/de.js @@ -15,6 +15,7 @@ export default { resources: { users: { name: "Benutzer", + backtolist: "Zurück zur Liste", fields: { avatar: "Avatar", id: "Benutzer-ID", diff --git a/src/i18n/en.js b/src/i18n/en.js index 3b27b76..2afaf75 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -15,6 +15,7 @@ export default { resources: { users: { name: "User |||| Users", + backtolist: "Back to list", fields: { avatar: "Avatar", id: "User-ID",