replace all require(svgs) with esm import (#7948)
Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
parent
522ad1aafb
commit
61cd463a3b
33 changed files with 104 additions and 54 deletions
|
@ -23,6 +23,7 @@ import { RoomPermalinkCreator } from "../../../utils/permalinks/Permalinks";
|
|||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
||||
import ReplyTile from './ReplyTile';
|
||||
import RoomContext, { TimelineRenderingType } from '../../../contexts/RoomContext';
|
||||
import CancelSvg from '../../../../res/img/cancel.svg';
|
||||
|
||||
function cancelQuoting(context: TimelineRenderingType) {
|
||||
dis.dispatch({
|
||||
|
@ -52,7 +53,7 @@ export default class ReplyPreview extends React.Component<IProps> {
|
|||
<div className="mx_ReplyPreview_header mx_ReplyPreview_cancel">
|
||||
<img
|
||||
className="mx_filterFlipColor"
|
||||
src={require("../../../../res/img/cancel.svg")}
|
||||
src={CancelSvg}
|
||||
width="18"
|
||||
height="18"
|
||||
onClick={() => cancelQuoting(this.context.timelineRenderingType)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue