mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 06:55:47 +01:00
apply prettier, removed flow related config and added tsconfig
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import React from 'react';
|
||||
import { translate } from 'react-i18next';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { User } from '@scm-manager/ui-types';
|
||||
import { Icon } from '@scm-manager/ui-components';
|
||||
import React from "react";
|
||||
import { translate } from "react-i18next";
|
||||
import { Link } from "react-router-dom";
|
||||
import { User } from "@scm-manager/ui-types";
|
||||
import { Icon } from "@scm-manager/ui-components";
|
||||
|
||||
type Props = {
|
||||
user: User;
|
||||
@@ -20,13 +20,13 @@ class UserRow extends React.Component<Props> {
|
||||
const { user, t } = this.props;
|
||||
const to = `/user/${user.name}`;
|
||||
const iconType = user.active ? (
|
||||
<Icon title={t('user.active')} name="user" />
|
||||
<Icon title={t("user.active")} name="user" />
|
||||
) : (
|
||||
<Icon title={t('user.inactive')} name="user-slash" />
|
||||
<Icon title={t("user.inactive")} name="user-slash" />
|
||||
);
|
||||
|
||||
return (
|
||||
<tr className={user.active ? 'border-is-green' : 'border-is-yellow'}>
|
||||
<tr className={user.active ? "border-is-green" : "border-is-yellow"}>
|
||||
<td>
|
||||
{iconType} {this.renderLink(to, user.name)}
|
||||
</td>
|
||||
@@ -41,4 +41,4 @@ class UserRow extends React.Component<Props> {
|
||||
}
|
||||
}
|
||||
|
||||
export default translate('users')(UserRow);
|
||||
export default translate("users")(UserRow);
|
||||
|
||||
Reference in New Issue
Block a user