Skip to content

Commit

Permalink
feat: KAN-50
Browse files Browse the repository at this point in the history
  • Loading branch information
aihara-sama committed Oct 30, 2024
1 parent f0589dd commit 187252f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
18 changes: 8 additions & 10 deletions app/[lang]/components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { toCapitalCase } from "@/utils/string/to-capital-case";
import { useLocale, useTranslations } from "next-intl";
import Link from "next/link";
import { useParams } from "next/navigation";
import { startTransition, type FunctionComponent } from "react";
import { type FunctionComponent } from "react";

const Header: FunctionComponent<PropsWithClassName> = ({ className }) => {
// Hooks
Expand All @@ -21,15 +21,13 @@ const Header: FunctionComponent<PropsWithClassName> = ({ className }) => {
console.log({ locale });

const changeLocale = (_locale: Locale) => {
startTransition(() => {
router.replace(
// @ts-expect-error -- TypeScript will validate that only known `params`
// are used in combination with a given `pathname`. Since the two will
// always match for the current route, we can skip runtime checks.
{ pathname, params },
{ locale: _locale }
);
});
router.replace(
// @ts-expect-error -- TypeScript will validate that only known `params`
// are used in combination with a given `pathname`. Since the two will
// always match for the current route, we can skip runtime checks.
{ pathname, params },
{ locale: _locale }
);
};

// View
Expand Down
2 changes: 1 addition & 1 deletion components/common/modals/upgrade-to-pro-modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const UpgradeToProModal: FunctionComponent<Props> = ({
{t("modal.titles.upgrade_to_pro")}
</p>
<p className="text-center text-neutral-500 mb-4">
{t("common.get_access_to_all_features_for", { price: "4.99" })}
{t("common.get_access_to_all_features_for", { price: "3.99" })}
</p>

<p className="text-lg mb-1">{t("common.what_you_get")}</p>
Expand Down

0 comments on commit 187252f

Please sign in to comment.