Skip to content

Commit bc40e90

Browse files
committed
style: fix linter spaces
1 parent f7535ac commit bc40e90

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

src/courseware/course/celebration/CelebrationModal.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const CelebrationModal = ({
3535
<StandardModal
3636
footerNode={(
3737
<ActionRow isStacked className="pb-2">
38-
<Button className="btn-primary" onClick={onClose}>{intl.formatMessage(messages.forward)}</Button>
38+
<Button className="btn-primary" onClick={onClose}>{intl.formatMessage(messages.forward)}</Button>
3939
</ActionRow>
4040
)}
4141
hasCloseButton={false}

src/courseware/course/sequence/Unit/ContentIFrame.jsx

+16-15
Original file line numberDiff line numberDiff line change
@@ -86,29 +86,30 @@ const ContentIFrame = ({
8686
<iframe title={title} {...contentIFrameProps} data-testid={testIDs.contentIFrame} />
8787
</div>
8888
)}
89-
{modalOptions.isOpen &&
90-
(<ModalDialog
89+
{modalOptions.isOpen
90+
&& (
91+
<ModalDialog
9192
dialogClassName="modal-lti"
9293
onClose={handleModalClose}
93-
size={ modalOptions.isFullscreen ? 'fullscreen': 'md'}
94+
size={modalOptions.isFullscreen ? 'fullscreen' : 'md'}
9495
isOpen
9596
hasCloseButton={false}
9697
>
9798
<ModalDialog.Body className={modalOptions.modalBodyClassName}>
98-
{modalOptions.body
99-
? <div className="unit-modal">{ modalOptions.body }</div>
100-
: (
101-
<iframe
102-
title={modalOptions.title}
103-
allow={IFRAME_FEATURE_POLICY}
104-
frameBorder="0"
105-
src={modalOptions.url}
106-
style={{ width: '100%', height: modalOptions.height }}
107-
/>
108-
)}
99+
{modalOptions.body
100+
? <div className="unit-modal">{ modalOptions.body }</div>
101+
: (
102+
<iframe
103+
title={modalOptions.title}
104+
allow={IFRAME_FEATURE_POLICY}
105+
frameBorder="0"
106+
src={modalOptions.url}
107+
style={{ width: '100%', height: modalOptions.height }}
108+
/>
109+
)}
109110
</ModalDialog.Body>
110111
</ModalDialog>
111-
)}
112+
)}
112113
</>
113114
);
114115
};

0 commit comments

Comments
 (0)