Skip to content

Commit

Permalink
fix(ui): add sandbox props to iframe (#1757)
Browse files Browse the repository at this point in the history
add sandbox props to iframe
  • Loading branch information
simeng-li authored Aug 10, 2022
1 parent ba50de5 commit 62d2afe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// FIXME: @simeng
/* eslint-disable react/iframe-missing-sandbox */
import classNames from 'classnames';
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
Expand Down Expand Up @@ -37,6 +35,7 @@ const IframeConfirmModal = ({
<div className={styles.content}>
{isLoading && <LoadingIcon />}
<iframe
sandbox={undefined}
className={isLoading ? styles.hidden : undefined}
role="iframe"
src={url}
Expand Down Expand Up @@ -64,4 +63,3 @@ const IframeConfirmModal = ({
};

export default IframeConfirmModal;
/* eslint-enable react/iframe-missing-sandbox */
2 changes: 1 addition & 1 deletion packages/ui/src/include.d/dom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ type AutoCompleteType =
| 'tel-country-code'
| 'tel-national';

// TODO: @simeng remove me
// LOG-2893 should remove this once we have API response guard
interface Body {
json<T>(): Promise<T>;
}

0 comments on commit 62d2afe

Please sign in to comment.