-
Notifications
You must be signed in to change notification settings - Fork 324
Expand file tree
/
Copy pathindex.jsx
More file actions
20 lines (17 loc) · 790 Bytes
/
Copy pathindex.jsx
File metadata and controls
20 lines (17 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { PluginSlot } from '@openedx/frontend-plugin-framework';
import { breakpoints, useWindowSize } from '@openedx/paragon';
import CertificateStatus from '../../course-home/progress-tab/certificate-status/CertificateStatus';
const ProgressTabCertificateStatusSidePanelSlot = () => {
const windowWidth = useWindowSize().width;
const wideScreen = windowWidth >= breakpoints.large.minWidth;
return (
<PluginSlot
id="org.openedx.frontend.learning.progress_tab_certificate_status_side_panel.v1"
idAliases={['progress_tab_certificate_status_side_panel_slot']}
>
{windowWidth && wideScreen && <CertificateStatus />}
</PluginSlot>
);
};
ProgressTabCertificateStatusSidePanelSlot.propTypes = {};
export default ProgressTabCertificateStatusSidePanelSlot;