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 { replaceableComponent } from "../../../utils/replaceableComponent";
|
|||
import { getBlobSafeMimeType } from '../../../utils/blobs';
|
||||
import BaseDialog from "./BaseDialog";
|
||||
import DialogButtons from "../elements/DialogButtons";
|
||||
import FilesSvg from '../../../../res/img/feather-customised/files.svg';
|
||||
|
||||
interface IProps {
|
||||
file: File;
|
||||
|
@ -94,7 +95,7 @@ export default class UploadConfirmDialog extends React.Component<IProps> {
|
|||
preview = <div>
|
||||
<div>
|
||||
<img className="mx_UploadConfirmDialog_fileIcon"
|
||||
src={require("../../../../res/img/feather-customised/files.svg")}
|
||||
src={FilesSvg}
|
||||
/>
|
||||
{ this.props.file.name } ({ filesize(this.props.file.size) })
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue