From 7fe396cf70d7eaa1b24a3e52b9f67cb56a21392b Mon Sep 17 00:00:00 2001 From: Aman Chaturvedi Date: Tue, 12 Nov 2024 17:43:50 +0530 Subject: [PATCH] NTP-7917 | PR comments resolved --- babel.config.js | 2 +- .../Tour/components/AnimatedRenderMask.tsx | 2 + .../Tour/components/CopilotModal.tsx | 6 +- src/components/Tour/components/Tooltip.tsx | 2 +- .../Tour/contexts/CopilotProvider.tsx | 2 - .../Tour/hooks/useStateWithAwait.ts | 3 +- src/components/Tour/hooks/useStepsMap.ts | 56 ++++++------------- src/components/Tour/types.ts | 2 +- .../allCasesFilters/FiltersContainer.tsx | 6 +- 9 files changed, 32 insertions(+), 49 deletions(-) diff --git a/babel.config.js b/babel.config.js index 74b4275c..4dc5cd0a 100644 --- a/babel.config.js +++ b/babel.config.js @@ -30,7 +30,7 @@ module.exports = { }, ], 'jest-hoist', - 'react-native-reanimated/plugin' + 'react-native-reanimated/plugin', ], env: { production: { diff --git a/src/components/Tour/components/AnimatedRenderMask.tsx b/src/components/Tour/components/AnimatedRenderMask.tsx index fd917b9e..b6e1a9ec 100644 --- a/src/components/Tour/components/AnimatedRenderMask.tsx +++ b/src/components/Tour/components/AnimatedRenderMask.tsx @@ -57,6 +57,7 @@ const AnimatedRenderMask: React.FC = ({ maskRect }) => { ], })); + // TODO: Can use for ripple animation in future // const animatedRectProps = useAnimatedProps(() => { // const animatedExpansion = interpolate(rippleAnimation.value, [0, 1], [0, 10]); // return { @@ -94,6 +95,7 @@ const AnimatedRenderMask: React.FC = ({ maskRect }) => { opacity={0.8} /> + {/* Can use this for ripple animation in future */} {/* (funct return null; } + const showMask = containerVisible && maskRect; + return ( (funct style={{ backgroundColor: 'transparent' }} > - {containerVisible && maskRect ? : null} - {containerVisible && maskRect ? ( + {showMask ? : null} + {showMask ? ( diff --git a/src/components/Tour/components/Tooltip.tsx b/src/components/Tour/components/Tooltip.tsx index a399887b..d902aa86 100644 --- a/src/components/Tour/components/Tooltip.tsx +++ b/src/components/Tour/components/Tooltip.tsx @@ -70,7 +70,7 @@ export const Tooltip: React.FC = ({ labels }) => {