This commit is contained in:
Maren Süwer
2018-12-20 11:31:32 +01:00
parent 77c26f0865
commit 9ca1ccb933
2 changed files with 5 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ const styles = {
type Props = { type Props = {
repository: Repository, repository: Repository,
full?: boolean, fullColumnWidth?: boolean,
// context props // context props
classes: any classes: any
}; };
@@ -77,9 +77,9 @@ class RepositoryEntry extends React.Component<Props> {
}; };
render() { render() {
const { repository, classes, full } = this.props; const { repository, classes, fullColumnWidth } = this.props;
const repositoryLink = this.createLink(repository); const repositoryLink = this.createLink(repository);
const halfColumn = full ? "is-full" : "is-half"; const halfColumn = fullColumnWidth ? "is-full" : "is-half";
return ( return (
<div <div
className={classNames( className={classNames(

View File

@@ -66,9 +66,9 @@ class RepositoryGroupEntry extends React.Component<Props, State> {
let content = null; let content = null;
if (!collapsed) { if (!collapsed) {
content = group.repositories.map((repository, index) => { content = group.repositories.map((repository, index) => {
const full = this.isFullSize(group.repositories, index); const fullColumnWidth = this.isFullSize(group.repositories, index);
return ( return (
<RepositoryEntry repository={repository} full={full} key={index} /> <RepositoryEntry repository={repository} fullColumnWidth={fullColumnWidth} key={index} />
); );
}); });
} }