Skip to content

Commit

Permalink
ui: show preview header while we getting bridge transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgeniyJB committed Nov 29, 2024
1 parent 25a7263 commit 4158ad9
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ export const BottomSheetBridgePreview = forwardRef<
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [selectedTokenPairs, dataToPreview]);

const showHeader = useMemo(() => {
return !processingTransaction && !previewLoader;
}, [previewLoader, processingTransaction]);
const showHeader = useMemo(
() => !processingTransaction,
[processingTransaction]
);

return (
<BottomSheet onBackdropPress={onClose} ref={ref} swiperIconVisible={true}>
Expand Down

0 comments on commit 4158ad9

Please sign in to comment.