refactor: 🔥 unused file with type error

This commit is contained in:
Adrian Pilarczyk 2023-06-22 15:11:47 +02:00
parent 05553f4744
commit a644bef9d3

View file

@ -1,18 +0,0 @@
import { useAppBridge } from "@saleor/app-sdk/app-bridge";
export const useAppRedirect = () => {
const { appBridge } = useAppBridge();
const redirectToPath = (href: string) => {
return appBridge?.dispatch({
type: "redirect",
payload: {
newContext: false,
actionId: "redirect_from_tax_app",
to: href,
},
});
};
return { redirect: redirectToPath };
};