check if column size is full for repo overview

This commit is contained in:
Maren Süwer
2018-12-20 11:12:04 +01:00
parent ca865125b8
commit 707715ec75
2 changed files with 98 additions and 81 deletions

View File

@@ -30,6 +30,7 @@ const styles = {
type Props = {
repository: Repository,
full?: boolean,
// context props
classes: any
};
@@ -76,16 +77,17 @@ class RepositoryEntry extends React.Component<Props> {
};
render() {
const { repository, classes } = this.props;
const { repository, classes, full } = this.props;
const repositoryLink = this.createLink(repository);
const halfColumn = full ? "is-full" : "is-half";
return (
<div
className={classNames(
"box",
"box-link-shadow",
"column is-clipped",
"is-half"
"column",
"is-clipped",
halfColumn
)}
>
<Link className={classNames(classes.overlay)} to={repositoryLink} />