diff --git a/packages/marketplace/src/components/pages/client-app-detail/__test__/__snapshots__/aside.test.tsx.snap b/packages/marketplace/src/components/pages/client-app-detail/__test__/__snapshots__/aside.test.tsx.snap index 0be34ef4b3..e30b98a856 100644 --- a/packages/marketplace/src/components/pages/client-app-detail/__test__/__snapshots__/aside.test.tsx.snap +++ b/packages/marketplace/src/components/pages/client-app-detail/__test__/__snapshots__/aside.test.tsx.snap @@ -67,47 +67,43 @@ exports[`WebComponentConfig Should match snapshot 1`] = ` } > - -
+ +
+ Settings +
+
+ - -
- Settings -
-
- - - -
-
- + Configuration + + - + closeModal={[Function]} + type="BOOK_VIEWING" + > + + +
`; diff --git a/packages/marketplace/src/components/pages/client-app-detail/aside.tsx b/packages/marketplace/src/components/pages/client-app-detail/aside.tsx index dc67c27316..f7ace520b8 100644 --- a/packages/marketplace/src/components/pages/client-app-detail/aside.tsx +++ b/packages/marketplace/src/components/pages/client-app-detail/aside.tsx @@ -4,12 +4,13 @@ import standAloneAppDetailStyles from '@/styles/blocks/standalone-app-detail.scs import { renderCategory, renderDesktopIntegrationTypes } from '../client-app-detail/app-content' import { DesktopIntegrationTypeModel } from '@reapit/foundations-ts-definitions' import { AppDetailDataNotNull } from '@/reducers/client/app-detail' -import { GridItem, Button, H6 } from '@reapit/elements' +import { Button, H5 } from '@reapit/elements' import { useDispatch, useSelector } from 'react-redux' import { selectIsWebComponentOpen } from '@/selector/client' import { clientCloseWebComponentConfig, clientOpenWebComponentConfig } from '@/actions/client' import { Dispatch } from 'redux' import WebComponentModal from '@/components/ui/web-component-config-modal' +import clientAppDetailStyles from '@/styles/pages/client-app-detail.scss?mod' interface AsideProps { appDetailData: AppDetailDataNotNull @@ -29,8 +30,12 @@ export const Aside: React.FC = ({ desktopIntegrationTypes, appDetail
{renderDesktopIntegrationTypes(desktopIntegrationTypes)}
+ {isWebComponent && ( +
+ +
+ )} - {isWebComponent && } ) } @@ -49,13 +54,11 @@ export const WebComponentConfig = () => { const handleToggleWebComponentModal = toggleWebComponentModal(dispatch) const handleCloseWebComponentModal = closeWebComponentModal(dispatch) return ( - <> - -
Settings
- -
+
+
Settings
+ {isWebComponentOpen && ( { closeModal={handleCloseWebComponentModal} /> )} - +
) } diff --git a/packages/marketplace/src/tests/badges/badge-branches.svg b/packages/marketplace/src/tests/badges/badge-branches.svg index dd44c5ead6..d254136e33 100644 --- a/packages/marketplace/src/tests/badges/badge-branches.svg +++ b/packages/marketplace/src/tests/badges/badge-branches.svg @@ -1 +1 @@ -Coverage:branchesCoverage:branches71.35%71.35% +Coverage:branchesCoverage:branches71.53%71.53% \ No newline at end of file diff --git a/packages/marketplace/src/tests/badges/badge-functions.svg b/packages/marketplace/src/tests/badges/badge-functions.svg index 11ad3123df..446c1469ed 100644 --- a/packages/marketplace/src/tests/badges/badge-functions.svg +++ b/packages/marketplace/src/tests/badges/badge-functions.svg @@ -1 +1 @@ -Coverage:functionsCoverage:functions78.39%78.39% +Coverage:functionsCoverage:functions77.11%77.11% \ No newline at end of file diff --git a/packages/marketplace/src/tests/badges/badge-lines.svg b/packages/marketplace/src/tests/badges/badge-lines.svg index ae82c191e2..01e37a3d1b 100644 --- a/packages/marketplace/src/tests/badges/badge-lines.svg +++ b/packages/marketplace/src/tests/badges/badge-lines.svg @@ -1 +1 @@ -Coverage:linesCoverage:lines90.28%90.28% +Coverage:linesCoverage:lines90.34%90.34% \ No newline at end of file diff --git a/packages/marketplace/src/tests/badges/badge-statements.svg b/packages/marketplace/src/tests/badges/badge-statements.svg index d56bc11bbb..e8a2820053 100644 --- a/packages/marketplace/src/tests/badges/badge-statements.svg +++ b/packages/marketplace/src/tests/badges/badge-statements.svg @@ -1 +1 @@ -Coverage:statementsCoverage:statements89.49%89.49% +Coverage:statementsCoverage:statements89.15%89.15% \ No newline at end of file