aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-03-17 08:47:19 +0200
committerHenry Jameson <me@hjkos.com>2022-03-17 08:53:45 +0200
commit4993dc37e2430067a92ec78389c9d9dce79d19db (patch)
tree228127ef4693e85a44243203c69ae58d6a2a3f6a /src
parent0671aa0dd0cd199dc6206ae8b3fb0de114acddfe (diff)
fix rich content not rendering stillimage nor links correctly
Diffstat (limited to 'src')
-rw-r--r--src/components/rich_content/rich_content.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx
index 383b29b3..97c51189 100644
--- a/src/components/rich_content/rich_content.jsx
+++ b/src/components/rich_content/rich_content.jsx
@@ -76,7 +76,7 @@ export default {
const renderImage = (tag) => {
return <StillImage
- {...{ attrs: getAttrs(tag) }}
+ {...getAttrs(tag)}
class="img"
/>
}
@@ -222,7 +222,7 @@ export default {
attrs.target = '_blank'
const newChildren = [...children].reverse().map(processItemReverse).reverse()
- return <a {...{ attrs }}>
+ return <a {...attrs}>
{ newChildren }
</a>
}