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 = { type Props = {
src: string; src: string;
alt: string; alt: string;
className?: any; className?: string;
}; };
class Image extends React.Component<Props> { class Image extends React.Component<Props> {

View File

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

View File

@@ -18,7 +18,11 @@ const StyledMember = styled.li`
export default class GroupMember extends React.Component<Props> { export default class GroupMember extends React.Component<Props> {
renderLink(to: string, label: string) { 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) { showName(to: any, member: Member) {