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
|
@ -51,6 +51,7 @@ import ChangePassword from "../../ChangePassword";
|
|||
import InlineTermsAgreement from "../../../terms/InlineTermsAgreement";
|
||||
import SetIdServer from "../../SetIdServer";
|
||||
import SetIntegrationManager from "../../SetIntegrationManager";
|
||||
import WarningTriangleSvg from '../../../../../../res/img/feather-customised/warning-triangle.svg';
|
||||
|
||||
interface IProps {
|
||||
closeSettingsFn: () => void;
|
||||
|
@ -453,7 +454,7 @@ export default class GeneralUserSettingsTab extends React.Component<IProps, ISta
|
|||
const discoWarning = this.state.requiredPolicyInfo.hasTerms
|
||||
? <img
|
||||
className='mx_GeneralUserSettingsTab_warningIcon'
|
||||
src={require("../../../../../../res/img/feather-customised/warning-triangle.svg")}
|
||||
src={WarningTriangleSvg}
|
||||
width="18"
|
||||
height="18"
|
||||
alt={_t("Warning")}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue