Skip to content

Commit 3f1804a

Browse files
refactor: apply suggestion src/library-authoring/containers/ContainerInfo.tsx
Co-authored-by: Chris Chávez <[email protected]>
1 parent 1426176 commit 3f1804a

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/library-authoring/containers/ContainerInfo.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,14 @@ const ContainerActions = ({
151151
};
152152

153153
/* istanbul ignore next */
154-
const ContainerSettings = () => {
155-
const intl = useIntl();
156-
return (
157-
<Alert icon={InfoOutline} variant="info">
158-
<p>{intl.formatMessage(messages.containerSettingsMsg)}</p>
159-
</Alert>
160-
);
161-
};
162-
154+
/* istanbul ignore next */
155+
const ContainerSettings = () => (
156+
<Alert icon={InfoOutline} variant="info">
157+
<p>
158+
<FormattedMessage {...messages.containerSettingsMsg}/>
159+
</p>
160+
</Alert>
161+
);
163162
const ContainerInfo = () => {
164163
const intl = useIntl();
165164
const {

0 commit comments

Comments
 (0)