fix: add 'rel' attirubte to edit link (#3293)

This commit is contained in:
Erez Rokah
2020-02-20 16:38:34 +01:00
committed by GitHub
parent 783440e370
commit 5ea1554a07
5 changed files with 21 additions and 24 deletions

View File

@ -25,9 +25,7 @@ function getEmotionCache() {
const PreviewContainer = ({ children, highlight }) => (
<CacheProvider value={getEmotionCache()}>
<Layout>
{highlight ? <Highlight>{children}</Highlight> : children}
</Layout>
<Layout>{highlight ? <Highlight>{children}</Highlight> : children}</Layout>
</CacheProvider>
);
@ -42,7 +40,7 @@ class Highlight extends React.Component {
if (this.ref.current) {
Prism.highlightAllUnder(this.ref.current);
}
})
});
}
componentDidMount() {
@ -54,13 +52,9 @@ class Highlight extends React.Component {
}
render() {
return (
<div ref={this.ref}>
{this.props.children}
</div>
);
return <div ref={this.ref}>{this.props.children}</div>;
}
};
}
const BlogPostPreview = ({ entry, widgetFor }) => {
const data = entry.get('data');
@ -121,8 +115,7 @@ const NotificationPreview = ({ entry }) => (
<Notification key={idx} url={notif.get('url')} loud={notif.get('loud')}>
{notif.get('message')}
</Notification>
))
}
))}
</PreviewContainer>
);