mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
apply prettier, removed flow related config and added tsconfig
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user