add extension point to the content ui

This commit is contained in:
Mohamed Karray
2019-02-25 16:24:05 +01:00
parent a7f4699853
commit dac7b4543e

View File

@@ -104,7 +104,7 @@ class Content extends React.Component<Props, State> {
showMoreInformation() { showMoreInformation() {
const collapsed = this.state.collapsed; const collapsed = this.state.collapsed;
const { classes, file, revision, t } = this.props; const { classes, file, revision, t, repository } = this.props;
const date = <DateFromNow date={file.lastModified} />; const date = <DateFromNow date={file.lastModified} />;
const description = file.description ? ( const description = file.description ? (
<p> <p>
@@ -151,7 +151,7 @@ class Content extends React.Component<Props, State> {
</tr> </tr>
<ExtensionPoint <ExtensionPoint
name="repos.content.metadata" name="repos.content.metadata"
props={{ file }} props={{ file , repository}}
> >
</ExtensionPoint> </ExtensionPoint>
</tbody> </tbody>