added creationDate and lastModified to group details

This commit is contained in:
Sebastian Sdorra
2018-08-08 15:29:48 +02:00
parent 8b1e61a299
commit d3092a10c8

View File

@@ -3,6 +3,7 @@ import React from "react";
import type { Group } from "../../types/Group"; import type { Group } from "../../types/Group";
import { translate } from "react-i18next"; import { translate } from "react-i18next";
import GroupMember from "./GroupMember"; import GroupMember from "./GroupMember";
import DateFromNow from "../../../components/DateFromNow";
type Props = { type Props = {
group: Group, group: Group,
@@ -27,6 +28,18 @@ class Details extends React.Component<Props> {
<td>{t("group.type")}</td> <td>{t("group.type")}</td>
<td>{group.type}</td> <td>{group.type}</td>
</tr> </tr>
<tr>
<td>{t("group.creationDate")}</td>
<td>
<DateFromNow date={group.creationDate} />
</td>
</tr>
<tr>
<td>{t("group.lastModified")}</td>
<td>
<DateFromNow date={group.lastModified} />
</td>
</tr>
{this.renderMembers()} {this.renderMembers()}
</tbody> </tbody>
</table> </table>