});
export const UserNameFromID =
- compose(
- userFromID,
- withStyles({}, { withTheme: true }))
- ((props: { uuid: string, userFullname: string, dispatch: Dispatch }) => {
+ compose(userFromID)(
+ (props: { uuid: string, userFullname: string, dispatch: Dispatch }) => {
const { uuid, userFullname, dispatch } = props;
if (userFullname === '') {
dispatch<any>(loadResource(uuid, false));
}
- return <Typography inline>
+ return <span>
{userFullname ? userFullname : uuid}
- </Typography>;
+ </span>;
});
export const ResponsiblePerson =