Fix coding style
This commit is contained in:
parent
83b313e3a6
commit
8687a18c5b
@ -8,37 +8,36 @@ import {
|
||||
DateField,
|
||||
} from "react-admin";
|
||||
|
||||
|
||||
export const ConnectionsShow = props => (
|
||||
<Show {...props} >
|
||||
<SimpleForm toolbar={false} >
|
||||
<Show {...props}>
|
||||
<SimpleForm toolbar={false}>
|
||||
<TextField source="user_id" label="resources.users.fields.id" />
|
||||
<ArrayField
|
||||
source="devices[].sessions[0].connections"
|
||||
label="resources.connections.name"
|
||||
>
|
||||
<Datagrid style={{width: "100%"}}>
|
||||
<TextField source="ip" sortable={false} />
|
||||
<DateField
|
||||
source="last_seen"
|
||||
showTime
|
||||
options={{
|
||||
year: 'numeric',
|
||||
month: '2-digit',
|
||||
day: '2-digit',
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
second: '2-digit',
|
||||
}}
|
||||
sortable={false}
|
||||
/>
|
||||
<TextField
|
||||
source="user_agent"
|
||||
sortable={false}
|
||||
style={{width: "100%"}}
|
||||
/>
|
||||
<Datagrid style={{ width: "100%" }}>
|
||||
<TextField source="ip" sortable={false} />
|
||||
<DateField
|
||||
source="last_seen"
|
||||
showTime
|
||||
options={{
|
||||
year: "numeric",
|
||||
month: "2-digit",
|
||||
day: "2-digit",
|
||||
hour: "2-digit",
|
||||
minute: "2-digit",
|
||||
second: "2-digit",
|
||||
}}
|
||||
sortable={false}
|
||||
/>
|
||||
<TextField
|
||||
source="user_agent"
|
||||
sortable={false}
|
||||
style={{ width: "100%" }}
|
||||
/>
|
||||
</Datagrid>
|
||||
</ArrayField>
|
||||
</SimpleForm>
|
||||
</Show>
|
||||
);
|
||||
);
|
||||
|
||||
@ -89,4 +89,4 @@ export const UserEdit = props => (
|
||||
<BooleanInput source="deactivated" />
|
||||
</SimpleForm>
|
||||
</Edit>
|
||||
);
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user