From 17de793737520b100ceafcbfa687691fc00181ba Mon Sep 17 00:00:00 2001 From: David Echelberger Date: Sun, 27 Mar 2022 18:45:34 -0400 Subject: [PATCH] [nav-bug] slideover bug fix Signed-off-by: David Echelberger --- src/components/AppWrapper.tsx | 5 ++--- src/pages/Tokens/views/PoolDetails.tsx | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/AppWrapper.tsx b/src/components/AppWrapper.tsx index bda79e15..49ff7048 100644 --- a/src/components/AppWrapper.tsx +++ b/src/components/AppWrapper.tsx @@ -74,7 +74,7 @@ export const AppWrapper: React.FC = () => { useEffect(() => { const slideQuery = searchParams.get(SLIDE_QUERY_KEY); slideQuery !== null && setSlideQuery(slideQuery); - }, [pathname]); + }, [pathname, setSearchParams]); // Time string useEffect(() => { @@ -106,9 +106,8 @@ export const AppWrapper: React.FC = () => { searchParams.delete(SLIDE_QUERY_KEY); } else { isValidUUID(slideID) && searchParams.set(SLIDE_QUERY_KEY, slideID); - setSlideQuery(slideID); + setSearchParams(searchParams); } - setSearchParams(searchParams); }; const addDateToParams = (timeFilterString: CreatedFilterOptions) => { diff --git a/src/pages/Tokens/views/PoolDetails.tsx b/src/pages/Tokens/views/PoolDetails.tsx index 1b025484..e6300be9 100644 --- a/src/pages/Tokens/views/PoolDetails.tsx +++ b/src/pages/Tokens/views/PoolDetails.tsx @@ -372,6 +372,7 @@ export const PoolDetails: () => JSX.Element = () => { dataTotal={tokenTransferTotal} currentPage={currentPage} rowsPerPage={rowsPerPage} + dashboardSize headerBtn={