Refactor localization keys to use dot notation for consistency across… (#464)
* Refactor localization keys to use dot notation for consistency across documentation and components * chore: bump version to 3.0.1 in package.json * Remove console log from SidebarLayout and update migration documentation for AlertDialog usage within Dropdowns * Update dashboard image to improve visual assets
This commit is contained in:
committed by
GitHub
parent
7ebff31475
commit
f9dfdf3ac8
@@ -159,7 +159,7 @@ function PricingItem(
|
||||
const lineItem = props.primaryLineItem!;
|
||||
const isCustom = props.plan.custom ?? false;
|
||||
|
||||
const i18nKey = `billing.units.${lineItem.unit}` as never;
|
||||
const i18nKey = lineItem?.unit ? `billing.units.${lineItem.unit}` : '';
|
||||
|
||||
const unitLabel = lineItem?.unit
|
||||
? t.has(i18nKey)
|
||||
|
||||
Reference in New Issue
Block a user