From 99cd9dab1d9d0f39f0aedf736718ca9a7fa7f6d5 Mon Sep 17 00:00:00 2001 From: Kyrylo Hudym-Levkovych Date: Tue, 18 Jun 2024 22:36:17 +0300 Subject: [PATCH] 1) fix active Share alive checkbox; 2) show license details link only for creative commons; 3) same color for Attribution blurb image --- .../components/LicenseWidget/LicenseBlurb.jsx | 2 +- .../components/LicenseWidget/LicenseDetails.jsx | 2 +- .../components/LicenseWidget/LicenseDisplay.jsx | 16 +++++++++------- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/editors/containers/VideoEditor/components/VideoSettingsModal/components/LicenseWidget/LicenseBlurb.jsx b/src/editors/containers/VideoEditor/components/VideoSettingsModal/components/LicenseWidget/LicenseBlurb.jsx index 1775df8db..9c7cf2862 100644 --- a/src/editors/containers/VideoEditor/components/VideoSettingsModal/components/LicenseWidget/LicenseBlurb.jsx +++ b/src/editors/containers/VideoEditor/components/VideoSettingsModal/components/LicenseWidget/LicenseBlurb.jsx @@ -25,7 +25,7 @@ export const LicenseBlurb = ({ {/* not sure how to handle the edge cases when some of the icons are not displayed */} {license === LicenseTypes.allRightsReserved ? : null} {license === LicenseTypes.creativeCommons ? : null} - {details.attribution ? : null} + {details.attribution ? : null} {details.noncommercial ? : null} {details.noDerivatives ? : null} {details.shareAlike ? : null} diff --git a/src/editors/containers/VideoEditor/components/VideoSettingsModal/components/LicenseWidget/LicenseDetails.jsx b/src/editors/containers/VideoEditor/components/VideoSettingsModal/components/LicenseWidget/LicenseDetails.jsx index cba3e3b3a..9cd415a57 100644 --- a/src/editors/containers/VideoEditor/components/VideoSettingsModal/components/LicenseWidget/LicenseDetails.jsx +++ b/src/editors/containers/VideoEditor/components/VideoSettingsModal/components/LicenseWidget/LicenseDetails.jsx @@ -123,7 +123,7 @@ export const LicenseDetails = ({ updateField({ licenseDetails: { diff --git a/src/editors/containers/VideoEditor/components/VideoSettingsModal/components/LicenseWidget/LicenseDisplay.jsx b/src/editors/containers/VideoEditor/components/VideoSettingsModal/components/LicenseWidget/LicenseDisplay.jsx index 435d9fd42..67a873cf0 100644 --- a/src/editors/containers/VideoEditor/components/VideoSettingsModal/components/LicenseWidget/LicenseDisplay.jsx +++ b/src/editors/containers/VideoEditor/components/VideoSettingsModal/components/LicenseWidget/LicenseDisplay.jsx @@ -28,13 +28,15 @@ export const LicenseDisplay = ({
{licenseDescription}
- - - + {license === LicenseTypes.creativeCommons && ( + + + + )} ); }