This commit is contained in:
Fredrik Burmester
2025-02-22 13:11:37 +01:00
parent af2bd030e9
commit 81b91bbb97
4 changed files with 9 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import { SettingsIndex } from "@/components/settings/SettingsIndex";
import { HomeIndex } from "@/components/settings/HomeIndex";
export default function page() {
return <SettingsIndex />;
return <HomeIndex />;
}

View File

@@ -63,6 +63,11 @@ export default function TabLayout() {
>
<NativeTabs.Screen redirect name="index" />
<NativeTabs.Screen
listeners={({ navigation }) => ({
tabPress: (e) => {
eventBus.emit("scrollToTop");
},
})}
name="(home)"
options={{
title: t("tabs.home"),

View File

@@ -53,7 +53,7 @@ type MediaListSection = {
type Section = ScrollingCollectionListSection | MediaListSection;
export const SettingsIndex = () => {
export const HomeIndex = () => {
const router = useRouter();
const { t } = useTranslation();

View File

@@ -50,7 +50,7 @@ type MediaListSection = {
type Section = ScrollingCollectionListSection | MediaListSection;
export const SettingsIndex = () => {
export const HomeIndex = () => {
const router = useRouter();
const { t } = useTranslation();