Moving previews to client side rendering for consistency
This commit is contained in:
13
frontend/components/Editor/components/Image.js
Normal file
13
frontend/components/Editor/components/Image.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// @flow
|
||||
import React from 'react';
|
||||
import type { Props } from '../types';
|
||||
|
||||
export default function Image({ attributes, node }: Props) {
|
||||
return (
|
||||
<img
|
||||
{...attributes}
|
||||
src={node.data.get('src')}
|
||||
alt={node.data.get('alt')}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user