Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Improve typing

dominik-zeglen3a163a27951a
diff --git a/saleor/static/dashboard-next/hooks/useNavigator.ts b/saleor/static/dashboard-next/hooks/useNavigator.ts
index 0ecb09c14c..35a2d3245c 100644
--- a/saleor/static/dashboard-next/hooks/useNavigator.ts
+++ b/saleor/static/dashboard-next/hooks/useNavigator.ts
@@ -6,7 +6,7 @@ function useNavigator() {
history
} = useRouter();
- return (url, replace = false, preserveQs = false) => {
+ return (url: string, replace = false, preserveQs = false) => {
const targetUrl = preserveQs ? url + search : url;
replace ? history.replace(targetUrl) : history.push(targetUrl);
window.scrollTo({ top: 0, behavior: "smooth" });