From a03faa6b3facfb580f89f79d599a6cddc9701f98 Mon Sep 17 00:00:00 2001 From: Ross Bulat Date: Tue, 7 Nov 2023 13:56:29 +0700 Subject: [PATCH] chore: disableScroll on carousel modals --- src/pages/Nominate/Active/ManageBond.tsx | 6 +++++- src/pages/Nominate/Active/Status/UnclaimedPayoutsStatus.tsx | 1 + src/pages/Nominate/Active/UnstakePrompts.tsx | 1 + src/pages/Pools/Home/ClosurePrompts.tsx | 1 + src/pages/Pools/Home/ManageBond.tsx | 6 +++++- src/pages/Pools/Home/Status/MembershipStatus.tsx | 2 +- 6 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/pages/Nominate/Active/ManageBond.tsx b/src/pages/Nominate/Active/ManageBond.tsx index 9a47a52d40..2ea40e9406 100644 --- a/src/pages/Nominate/Active/ManageBond.tsx +++ b/src/pages/Nominate/Active/ManageBond.tsx @@ -111,7 +111,11 @@ export const ManageBond = () => { onClick={() => openModal({ key: 'UnlockChunks', - options: { bondFor: 'nominator', disableWindowResize: true }, + options: { + bondFor: 'nominator', + disableWindowResize: true, + disableScroll: true, + }, size: 'sm', }) } diff --git a/src/pages/Nominate/Active/Status/UnclaimedPayoutsStatus.tsx b/src/pages/Nominate/Active/Status/UnclaimedPayoutsStatus.tsx index e98088ecd1..1de876680a 100644 --- a/src/pages/Nominate/Active/Status/UnclaimedPayoutsStatus.tsx +++ b/src/pages/Nominate/Active/Status/UnclaimedPayoutsStatus.tsx @@ -58,6 +58,7 @@ export const UnclaimedPayoutsStatus = () => { size: 'sm', options: { disableWindowResize: true, + disableScroll: true, }, }), }, diff --git a/src/pages/Nominate/Active/UnstakePrompts.tsx b/src/pages/Nominate/Active/UnstakePrompts.tsx index 37e97954ab..c38a6616cb 100644 --- a/src/pages/Nominate/Active/UnstakePrompts.tsx +++ b/src/pages/Nominate/Active/UnstakePrompts.tsx @@ -83,6 +83,7 @@ export const UnstakePrompts = () => { bondFor: 'nominator', poolClosure: true, disableWindowResize: true, + disableScroll: true, }, size: 'sm', }) diff --git a/src/pages/Pools/Home/ClosurePrompts.tsx b/src/pages/Pools/Home/ClosurePrompts.tsx index d11158215e..e883aaed95 100644 --- a/src/pages/Pools/Home/ClosurePrompts.tsx +++ b/src/pages/Pools/Home/ClosurePrompts.tsx @@ -95,6 +95,7 @@ export const ClosurePrompts = () => { bondFor: 'pool', poolClosure: true, disableWindowResize: true, + disableScroll: true, }, size: 'sm', }) diff --git a/src/pages/Pools/Home/ManageBond.tsx b/src/pages/Pools/Home/ManageBond.tsx index eceeae359d..40c0ec5b21 100644 --- a/src/pages/Pools/Home/ManageBond.tsx +++ b/src/pages/Pools/Home/ManageBond.tsx @@ -105,7 +105,11 @@ export const ManageBond = () => { onClick={() => openModal({ key: 'UnlockChunks', - options: { bondFor: 'pool', disableWindowResize: true }, + options: { + bondFor: 'pool', + disableWindowResize: true, + disableScroll: true, + }, size: 'sm', }) } diff --git a/src/pages/Pools/Home/Status/MembershipStatus.tsx b/src/pages/Pools/Home/Status/MembershipStatus.tsx index 95496c118e..54055f4643 100644 --- a/src/pages/Pools/Home/Status/MembershipStatus.tsx +++ b/src/pages/Pools/Home/Status/MembershipStatus.tsx @@ -67,7 +67,7 @@ export const MembershipStatus = ({ onClick: () => openModal({ key: 'ManagePool', - options: { disableWindowResize: true }, + options: { disableWindowResize: true, disableScroll: true }, size: 'sm', }), });