update tab nhật ký (Lọc, Ngôn ngữ,...)
This commit is contained in:
@@ -12,7 +12,7 @@ export default function TabLayout() {
|
||||
const segments = useSegments() as string[];
|
||||
const prev = useRef<string | null>(null);
|
||||
const currentSegment = segments[1] ?? segments[segments.length - 1] ?? null;
|
||||
const { t, locale } = useI18n();
|
||||
const { t } = useI18n();
|
||||
useEffect(() => {
|
||||
if (prev.current !== currentSegment) {
|
||||
// console.log("Tab changed ->", { from: prev.current, to: currentSegment });
|
||||
@@ -60,7 +60,11 @@ export default function TabLayout() {
|
||||
options={{
|
||||
title: t("navigation.manager"),
|
||||
tabBarIcon: ({ color }) => (
|
||||
<IconSymbol size={28} name="square.stack.3d.up.fill" color={color} />
|
||||
<IconSymbol
|
||||
size={28}
|
||||
name="square.stack.3d.up.fill"
|
||||
color={color}
|
||||
/>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user