improve changeset styling

This commit is contained in:
Sebastian Sdorra
2018-10-18 14:40:35 +02:00
parent 167e8dbdca
commit 9ac5b3fe37
13 changed files with 239 additions and 136 deletions

View File

@@ -0,0 +1,18 @@
//@flow
import React from "react";
import { binder } from "@scm-manager/ui-extensions";
type Props = {
children: React.Node
};
class AvatarWrapper extends React.Component<Props> {
render() {
if (binder.hasExtension("changeset.avatar-factory")) {
return <>{this.props.children}</>;
}
return null;
}
}
export default AvatarWrapper;