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:
@@ -61,7 +61,7 @@ function AuthButtons() {
|
||||
<ModeToggle />
|
||||
|
||||
<Link href={pathsConfig.auth.signIn}>
|
||||
<Button variant={'link'}>
|
||||
<Button variant={'ghost'}>
|
||||
<Trans i18nKey={'auth:signIn'} />
|
||||
</Button>
|
||||
</Link>
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user