fix: moved QuoteIcon component into QuoteIconContainer

pull/2757/head
William Grant 2 years ago
parent 1609ebfe32
commit 1d413a2f76

@ -1,21 +0,0 @@
import classNames from 'classnames';
import React from 'react';
export const QuoteIcon = (props: any) => {
const { icon } = props;
return (
<div className="module-quote__icon-container">
<div className="module-quote__icon-container__inner">
<div className="module-quote__icon-container__circle-background">
<div
className={classNames(
'module-quote__icon-container__icon',
`module-quote__icon-container__icon--${icon}`
)}
/>
</div>
</div>
</div>
);
};

@ -5,7 +5,7 @@ import { MIME } from '../../../../../types';
import { noop } from 'lodash';
import { QuoteImage } from './QuoteImage';
import { QuoteIcon } from './QuoteIcon';
import classNames from 'classnames';
function getObjectUrl(thumbnail: Attachment | undefined): string | undefined {
if (thumbnail && thumbnail.objectUrl) {
@ -15,6 +15,25 @@ function getObjectUrl(thumbnail: Attachment | undefined): string | undefined {
return;
}
const QuoteIcon = (props: any) => {
const { icon } = props;
return (
<div className="module-quote__icon-container">
<div className="module-quote__icon-container__inner">
<div className="module-quote__icon-container__circle-background">
<div
className={classNames(
'module-quote__icon-container__icon',
`module-quote__icon-container__icon--${icon}`
)}
/>
</div>
</div>
</div>
);
};
export const QuoteIconContainer = (
props: Pick<QuotePropsWithoutListener, 'attachment'> & {
handleImageErrorBound: () => void;

Loading…
Cancel
Save