refactor: 🔥 unused file with type error
This commit is contained in:
parent
05553f4744
commit
a644bef9d3
1 changed files with 0 additions and 18 deletions
|
@ -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 };
|
|
||||||
};
|
|
Loading…
Reference in a new issue