Prevents 404 in networks tab for TRIAL users

pull/3117/head
zomars 2022-06-24 09:27:52 -06:00
parent 7be60b47f1
commit 7f53c4288d
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ const TrialBanner = () => {
<Button <Button
href="/api/upgrade" href="/api/upgrade"
color="minimal" color="minimal"
prefetch={false}
className="w-full justify-center border-2 border-gray-600 hover:bg-yellow-100"> className="w-full justify-center border-2 border-gray-600 hover:bg-yellow-100">
{t("upgrade_now")} {t("upgrade_now")}
</Button> </Button>

View File

@ -18,7 +18,7 @@ export type ButtonBaseProps = {
}; };
export type ButtonProps = ButtonBaseProps & export type ButtonProps = ButtonBaseProps &
( (
| (Omit<JSX.IntrinsicElements["a"], "href" | "onClick"> & { href: LinkProps["href"] }) | (Omit<JSX.IntrinsicElements["a"], "href" | "onClick"> & LinkProps)
| (Omit<JSX.IntrinsicElements["button"], "onClick"> & { href?: never }) | (Omit<JSX.IntrinsicElements["button"], "onClick"> & { href?: never })
); );