Skip to content

Commit c0b6242

Browse files
committed
style: fix linter spaces
1 parent 826473f commit c0b6242

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
@@ -36,7 +36,7 @@ const CelebrationModal = ({
3636
<StandardModal
3737
footerNode={(
3838
<ActionRow isStacked className="pb-2">
39-
<Button className="btn-primary" onClick={onClose}>{intl.formatMessage(messages.forward)}</Button>
39+
<Button className="btn-primary" onClick={onClose}>{intl.formatMessage(messages.forward)}</Button>
4040
</ActionRow>
4141
)}
4242
hasCloseButton={false}

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

+16-15
Original file line numberDiff line numberDiff line change
@@ -75,29 +75,30 @@ const ContentIFrame = ({
7575
<iframe title={title} {...contentIFrameProps} data-testid={testIDs.contentIFrame} />
7676
</div>
7777
)}
78-
{modalOptions.isOpen &&
79-
(<ModalDialog
78+
{modalOptions.isOpen
79+
&& (
80+
<ModalDialog
8081
dialogClassName="modal-lti"
8182
onClose={handleModalClose}
82-
size={ modalOptions.isFullscreen ? 'fullscreen': 'md'}
83+
size={modalOptions.isFullscreen ? 'fullscreen' : 'md'}
8384
isOpen
8485
hasCloseButton={false}
8586
>
8687
<ModalDialog.Body className={modalOptions.modalBodyClassName}>
87-
{modalOptions.body
88-
? <div className="unit-modal">{ modalOptions.body }</div>
89-
: (
90-
<iframe
91-
title={modalOptions.title}
92-
allow={IFRAME_FEATURE_POLICY}
93-
frameBorder="0"
94-
src={modalOptions.url}
95-
style={{ width: '100%', height: modalOptions.height }}
96-
/>
97-
)}
88+
{modalOptions.body
89+
? <div className="unit-modal">{ modalOptions.body }</div>
90+
: (
91+
<iframe
92+
title={modalOptions.title}
93+
allow={IFRAME_FEATURE_POLICY}
94+
frameBorder="0"
95+
src={modalOptions.url}
96+
style={{ width: '100%', height: modalOptions.height }}
97+
/>
98+
)}
9899
</ModalDialog.Body>
99100
</ModalDialog>
100-
)}
101+
)}
101102
</>
102103
);
103104
};

0 commit comments

Comments
 (0)