mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
feat: add/remove bookmarks
This commit is contained in:
@@ -1,18 +1,17 @@
|
||||
import React from "react";
|
||||
import { View } from "tamagui";
|
||||
|
||||
import {
|
||||
bookmarks,
|
||||
ItemListSection,
|
||||
watching,
|
||||
} from "~/components/item/ItemListSection";
|
||||
import { ItemListSection, watching } from "~/components/item/ItemListSection";
|
||||
import ScreenLayout from "~/components/layout/ScreenLayout";
|
||||
import { useBookmarkStore } from "~/stores/settings";
|
||||
|
||||
export default function HomeScreen() {
|
||||
const { bookmarks } = useBookmarkStore();
|
||||
|
||||
return (
|
||||
<View style={{ flex: 1 }} flex={1}>
|
||||
<ScreenLayout title="Home">
|
||||
<ItemListSection title="Bookmarks" items={bookmarks.concat(watching)} />
|
||||
<ItemListSection title="Bookmarks" items={bookmarks} />
|
||||
<ItemListSection
|
||||
title="Continue Watching"
|
||||
items={watching.concat(bookmarks)}
|
||||
|
@@ -62,12 +62,14 @@ export default function SettingsScreen() {
|
||||
toastController.show("Update available", {
|
||||
burntOptions: { preset: "none" },
|
||||
native: true,
|
||||
duration: 500,
|
||||
});
|
||||
await Linking.openURL(url);
|
||||
} else {
|
||||
toastController.show("No updates available", {
|
||||
burntOptions: { preset: "none" },
|
||||
native: true,
|
||||
duration: 500,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user