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
|
@ -22,12 +22,14 @@ import { _t } from '../../../../languageHandler';
|
|||
import { SetupEncryptionStore, Phase } from '../../../../stores/SetupEncryptionStore';
|
||||
import { replaceableComponent } from "../../../../utils/replaceableComponent";
|
||||
import { IDialogProps } from "../IDialogProps";
|
||||
import VerifiedSvg from '../../../../../res/img/e2e/verified.svg';
|
||||
import WarningSvg from '../../../../../res/img/e2e/warning.svg';
|
||||
|
||||
function iconFromPhase(phase: Phase) {
|
||||
if (phase === Phase.Done) {
|
||||
return require("../../../../../res/img/e2e/verified.svg");
|
||||
return VerifiedSvg;
|
||||
} else {
|
||||
return require("../../../../../res/img/e2e/warning.svg");
|
||||
return WarningSvg;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue