From b8613ff84a1533ffb3b6facf73fee092f4c25e7c Mon Sep 17 00:00:00 2001 From: aliraza556 Date: Thu, 2 Jan 2025 10:25:52 +0500 Subject: [PATCH 1/2] fix: resolve conflicts WidgetSwitchViewer file --- src/people/widgetViews/WidgetSwitchViewer.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/people/widgetViews/WidgetSwitchViewer.tsx b/src/people/widgetViews/WidgetSwitchViewer.tsx index 4e7f88c5..a4d9f956 100644 --- a/src/people/widgetViews/WidgetSwitchViewer.tsx +++ b/src/people/widgetViews/WidgetSwitchViewer.tsx @@ -85,6 +85,7 @@ function WidgetSwitchViewer(props: any) { page: propsPage, setPage, languageString, + isBountyLandingPage, activeWorkspace, uuid, orgQueryLimit, @@ -104,8 +105,8 @@ function WidgetSwitchViewer(props: any) { minHeight: 132 } : { - minWidth: '1100px', - maxWidth: '1100px', + minWidth: isBountyLandingPage ? '900px' : '1100px', + maxWidth: isBountyLandingPage ? '900px' : '1100px', marginBottom: 16, borderRadius: '10px', display: 'flex', @@ -298,6 +299,7 @@ function WidgetSwitchViewer(props: any) { }} person={person} showModal={showModal} + isBountyLandingPage={isBountyLandingPage} setDeletePayload={setDeletePayload} fromBountyPage={props.fromBountyPage} activeWorkspace={activeWorkspace} From 953e440ee528969f677786df0b4877d7e5335d31 Mon Sep 17 00:00:00 2001 From: aliraza556 Date: Thu, 2 Jan 2025 10:56:58 +0500 Subject: [PATCH 2/2] fix: unit test --- .../header/__tests__/SuperAdminHeader.spec.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/superadmin/header/__tests__/SuperAdminHeader.spec.tsx b/src/pages/superadmin/header/__tests__/SuperAdminHeader.spec.tsx index 90c4fb5a..05f859b6 100644 --- a/src/pages/superadmin/header/__tests__/SuperAdminHeader.spec.tsx +++ b/src/pages/superadmin/header/__tests__/SuperAdminHeader.spec.tsx @@ -102,10 +102,10 @@ describe('Header Component', () => { const setWorkspaceMock = jest.fn(); const exportCSVText = 'Export CSV'; - const { rerender } = render( + render(
{ const setWorkspaceMock = jest.fn(); const exportCSVText = 'Export CSV'; - const { rerender } = render( + render(
{ expect(monthElement).toBeInTheDocument(); - const expectedDateRange = `${moment.unix(startDate).format('DD MMM YYYY')} - ${moment + const expectedDateRange = `${moment.unix(startDate).format('DD MMM')} - ${moment .unix(endDate) .format('DD MMM YYYY')}`; expect(monthElement).toHaveTextContent(expectedDateRange);