feat: recently added notifications

This commit is contained in:
Fredrik Burmester
2025-02-20 15:08:14 +01:00
parent ff35559687
commit 63ea7d128f
8 changed files with 250 additions and 6 deletions

View File

@@ -8,6 +8,8 @@ import { toast } from "sonner-native";
import { ListGroup } from "../list/ListGroup";
import { ListItem } from "../list/ListItem";
import { useTranslation } from "react-i18next";
import { storage } from "@/utils/mmkv";
import { RECENTLY_ADDED_SENT_NOTIFICATIONS_ITEM_IDS_KEY } from "@/utils/recently-added-notifications";
export const StorageSettings = () => {
const { deleteAllFiles, appSizeUsage } = useDownload();
@@ -109,6 +111,15 @@ export const StorageSettings = () => {
title={t("home.settings.storage.delete_all_downloaded_files")}
/>
</ListGroup>
<ListGroup>
<ListItem
textColor="red"
onPress={() => {
storage.set(RECENTLY_ADDED_SENT_NOTIFICATIONS_ITEM_IDS_KEY, "[]");
}}
title={"Reset recently added notifications"}
/>
</ListGroup>
</View>
);
};