Refactor logger usage and add discount field to checkout

This commit refactors the logger usage in various files to make it more streamlined and consistent. It also introduces a new 'enableDiscountField' feature for the checkout that can be toggled on specific products. This allows customers to apply discounts at checkout if the product or subscription plan has the 'enableDiscountField' set to true.
This commit is contained in:
giancarlo
2024-04-10 22:24:11 +08:00
parent 37c5e3ed76
commit e00cb3c591
3 changed files with 9 additions and 17 deletions

View File

@@ -61,7 +61,7 @@ function AuthButtons() {
<ModeToggle />
<Link href={pathsConfig.auth.signIn}>
<Button variant={'link'}>
<Button variant={'ghost'}>
<Trans i18nKey={'auth:signIn'} />
</Button>
</Link>

View File

@@ -9,7 +9,7 @@ import { cn, isRouteActive } from '@kit/ui/utils';
const getClassName = (path: string, currentPathName: string) => {
const isActive = isRouteActive(path, currentPathName);
return cn(`text-sm font-medium text-primary`, {
return cn(`text-sm font-medium`, {
'hover:underline': !isActive,
});
};