transfer frontend changes to typescript files

This commit is contained in:
Eduard Heimbuch
2019-10-25 12:38:48 +02:00
parent 949a8fe4f1
commit 6e0c788c98
4 changed files with 19 additions and 374 deletions

View File

@@ -151,20 +151,19 @@ class Sources extends React.Component<Props, State> {
const { revision, path, baseUrl, branches, repository } = this.props;
const { selectedBranch } = this.state;
if (revision) {
return (
<Breadcrumb
revision={encodeURIComponent(revision)}
path={path}
baseUrl={baseUrl}
branch={selectedBranch}
defaultBranch={branches && branches.filter(b => b.defaultBranch === true)[0]}
branches={branches}
repository={repository}
/>
);
}
return null;
return (
<Breadcrumb
revision={revision}
path={path}
baseUrl={baseUrl}
branch={selectedBranch}
defaultBranch={
branches && branches.filter(b => b.defaultBranch === true)[0]
}
branches={branches}
repository={repository}
/>
);
};
}