Skip to content

Commit 28491d2

Browse files
committed
[B] Add missing title to resource zoom overlay
Resolves MNFLD-1115
1 parent 9c49265 commit 28491d2

File tree

1 file changed

+7
-3
lines changed
  • client/src/frontend/components/resource-preview

1 file changed

+7
-3
lines changed

client/src/frontend/components/resource-preview/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,11 @@ export default class ResourcePreview extends Component {
7575
};
7676

7777
render() {
78-
const PreviewComponent = this.getPreviewComponent(this.props.resource);
78+
const { resource } = this.props;
7979

80-
if (!PreviewComponent) return this.renderChildren(this.props.resource);
80+
const PreviewComponent = this.getPreviewComponent(resource);
81+
82+
if (!PreviewComponent) return this.renderChildren(resource);
8183

8284
return (
8385
<UIDConsumer>
@@ -88,8 +90,10 @@ export default class ResourcePreview extends Component {
8890
appearance="overlay-full bg-neutral90"
8991
closeCallback={this.closeOverlay}
9092
id={id}
93+
title={resource.attributes.title}
94+
icon="resource24"
9195
>
92-
<PreviewComponent resource={this.props.resource} />
96+
<PreviewComponent resource={resource} />
9397
</GlobalOverlay>
9498
<Styled.PreviewToggle
9599
onClick={this.handleOpenPreviewClick}

0 commit comments

Comments
 (0)