diff --git a/src/profile-v2/CertificateCard.jsx b/src/profile-v2/CertificateCard.jsx index bbdb55f6b..53005ea17 100644 --- a/src/profile-v2/CertificateCard.jsx +++ b/src/profile-v2/CertificateCard.jsx @@ -1,9 +1,10 @@ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedDate, FormattedMessage, useIntl } from '@edx/frontend-platform/i18n'; -import { Hyperlink } from '@openedx/paragon'; +import { breakpoints, Hyperlink, useWindowSize } from '@openedx/paragon'; import get from 'lodash.get'; +import classNames from 'classnames'; import professionalCertificateSVG from './assets/professional-certificate.svg'; import verifiedCertificateSVG from './assets/verified-certificate.svg'; import messages from './Certificates.messages'; @@ -27,6 +28,8 @@ const CertificateCard = ({ audit: null, }[certificateType] || null; + const isMobileView = useWindowSize().width <= breakpoints.small.minWidth; + return (
-+
{intl.formatMessage(get( messages, `profile.certificates.types.${certificateType}`, messages['profile.certificates.types.unknown'], ))}
-+
+ {courseDisplayName} +
+
+
+
+
+
+ {certificates?.length > 0 ? (
+
+ {params.username}
+ {name}
+ {name}
+
-
+
-
+const Certificates = ({ certificates }) => {
+ const isMobileView = useWindowSize().width <= breakpoints.small.minWidth;
+ const isTabletView = useWindowSize().width <= breakpoints.medium.minWidth;
+ return (
+ {params.username}
+