apply prettier, removed flow related config and added tsconfig

This commit is contained in:
Sebastian Sdorra
2019-10-20 18:02:52 +02:00
parent 0e017dcadd
commit 490418d06e
231 changed files with 5771 additions and 30386 deletions

View File

@@ -1,11 +1,11 @@
import React from 'react';
import { translate } from 'react-i18next';
import { Me } from '@scm-manager/ui-types';
import React from "react";
import { translate } from "react-i18next";
import { Me } from "@scm-manager/ui-types";
import {
MailLink,
AvatarWrapper,
AvatarImage,
} from '@scm-manager/ui-components';
AvatarImage
} from "@scm-manager/ui-components";
type Props = {
me: Me;
@@ -30,15 +30,15 @@ class ProfileInfo extends React.Component<Props> {
<table className="table content">
<tbody>
<tr>
<th>{t('profile.username')}</th>
<th>{t("profile.username")}</th>
<td>{me.name}</td>
</tr>
<tr>
<th>{t('profile.displayName')}</th>
<th>{t("profile.displayName")}</th>
<td>{me.displayName}</td>
</tr>
<tr>
<th>{t('profile.mail')}</th>
<th>{t("profile.mail")}</th>
<td>
<MailLink address={me.mail} />
</td>
@@ -58,7 +58,7 @@ class ProfileInfo extends React.Component<Props> {
if (me.groups.length > 0) {
groups = (
<tr>
<th>{t('profile.groups')}</th>
<th>{t("profile.groups")}</th>
<td className="is-paddingless">
<ul>
{me.groups.map(group => {
@@ -73,4 +73,4 @@ class ProfileInfo extends React.Component<Props> {
}
}
export default translate('commons')(ProfileInfo);
export default translate("commons")(ProfileInfo);