Correct className type

This commit is contained in:
Florian Scholdei
2019-10-29 16:44:35 +01:00
parent 289b3a3d21
commit b74865f4df
3 changed files with 8 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ import { withContextPath } from "./urls";
type Props = {
src: string;
alt: string;
className?: any;
className?: string;
};
class Image extends React.Component<Props> {

View File

@@ -6,7 +6,7 @@ type Props = {
optionValues?: string[];
optionSelected: (p: string) => void;
preselectedOption?: string;
className: any;
className: string;
disabled?: boolean;
};

View File

@@ -2,7 +2,7 @@ import React from "react";
import { Link } from "react-router-dom";
import styled from "styled-components";
import { Member } from "@scm-manager/ui-types";
import {Icon} from "@scm-manager/ui-components";
import { Icon } from "@scm-manager/ui-components";
type Props = {
member: Member;
@@ -18,7 +18,11 @@ const StyledMember = styled.li`
export default class GroupMember extends React.Component<Props> {
renderLink(to: string, label: string) {
return <Link to={to}><Icon name="user" color="inherit" /> {label}</Link>;
return (
<Link to={to}>
<Icon name="user" color="inherit" /> {label}
</Link>
);
}
showName(to: any, member: Member) {