This commit is contained in:
Fredrik Burmester
2024-11-27 09:35:53 +01:00
parent a1a895815a
commit c911a3c38a

View File

@@ -53,7 +53,6 @@ type MediaListSection = {
type Section = ScrollingCollectionListSection | MediaListSection;
export default function index() {
const queryClient = useQueryClient();
const router = useRouter();
const api = useAtomValue(apiAtom);
@@ -68,6 +67,8 @@ export default function index() {
const { downloadedFiles } = useDownload();
const navigation = useNavigation();
const insets = useSafeAreaInsets();
useEffect(() => {
const hasDownloads = downloadedFiles && downloadedFiles.length > 0;
navigation.setOptions({
@@ -346,8 +347,6 @@ export default function index() {
);
}
const insets = useSafeAreaInsets();
if (e1 || e2)
return (
<View className="flex flex-col items-center justify-center h-full -mt-6">