
* feat: ✨ add taxes app * chore: 🔥 remove files, use monorepo ones instead * chore: ✨ add all env vars to .env.example * refactor: 🔧 use saleor eslint config * build: ⬆️ app-sdk, remove vercel from apl * refactor: ♻️ remove providers/index, infer taxProviders from providerConfig * refactor: ♻️ use tuples to use objects * refactor: 🚚 move types to taxes module * refactor: ♻️ tax-prepare-data -> tax-line-resolver * refactor: get isInFrame from apps-shared * build: ⬆️ next * feat: ✨ add appRegister allowlist * Update apps/taxes/src/pages/api/manifest.ts Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> * Update apps/taxes/src/pages/api/manifest.ts Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> * chore: 💡 improve comments * refactor: 🔥 app-dashboard-link * docs: 📝 add taxes to readme * refactor: 🔥 app-main-bar * refactor: ♻️ align saleor-app.ts with the rest * refactor: ♻️ use defaultValues * chore: ♻️ misc --------- Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
13 lines
408 B
TypeScript
13 lines
408 B
TypeScript
import { Link } from "@material-ui/core";
|
|
import { PropsWithChildren } from "react";
|
|
import { useAppRedirect } from "../../lib/app/redirect";
|
|
|
|
export const AppLink = ({ children, href }: PropsWithChildren<{ href: string }>) => {
|
|
const { redirect } = useAppRedirect();
|
|
|
|
return (
|
|
<Link target={"_blank"} href={href} rel="noreferrer" onClick={() => redirect(href)}>
|
|
{children}
|
|
</Link>
|
|
);
|
|
};
|