Skip to content

Commit

Permalink
Merge pull request #8460 from LedgerHQ/feat/change-label-to-yield-for…
Browse files Browse the repository at this point in the history
…-uk-bottom-nav-llm

Change label to yield for uk, earn for the rest for bottom navigator llm
  • Loading branch information
adammino-ledger authored Nov 25, 2024
2 parents abb25e1 + 5a38a12 commit b679734
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/ten-birds-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": minor
---

change bottom nav label for Earn to Yield just for UK locale
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import customTabBar from "../TabBar/CustomTabBar";
import { MainNavigatorParamList } from "./types/MainNavigator";
import { isMainNavigatorVisibleSelector } from "~/reducers/appstate";
import EarnLiveAppNavigator from "./EarnLiveAppNavigator";
import { getStakeLabelLocaleBased } from "~/helpers/getStakeLabelLocaleBased";

const Tab = createBottomTabNavigator<MainNavigatorParamList>();

Expand All @@ -35,7 +36,7 @@ export default function MainNavigator() {
const isMainNavigatorVisible = useSelector(isMainNavigatorVisibleSelector);
const managerNavLockCallback = useManagerNavLockCallback();
const web3hub = useFeature("web3hub");

const earnYiedlLabel = getStakeLabelLocaleBased();
const insets = useSafeAreaInsets();
const tabBar = useMemo(
() =>
Expand Down Expand Up @@ -108,7 +109,7 @@ export default function MainNavigator() {
tabBarIcon: props => (
<TabIcon
Icon={IconsLegacy.LendMedium}
i18nKey="tabs.earn"
i18nKey={earnYiedlLabel}
testID="tab-bar-earn"
{...props}
/>
Expand Down

0 comments on commit b679734

Please sign in to comment.