feat(mobile): success toast

This commit is contained in:
DIYgod 2025-04-09 17:53:20 +08:00
parent 53b2136889
commit a65742e2bf
No known key found for this signature in database
10 changed files with 12 additions and 13 deletions

View File

@ -109,14 +109,14 @@ export const ImageContextMenu = ({ imageUrl, entryId, children }: ImageContextMe
onSelect={() => {
if (isEntryStarred) {
collectionSyncService.unstarEntry(entryId)
toast.info("Unstarred")
toast.success("Unstarred")
} else {
collectionSyncService.starEntry({
feedId,
entryId,
view,
})
toast.info("Starred")
toast.success("Starred")
}
}}
>

View File

@ -81,14 +81,14 @@ export const EntryItemContextMenu = ({ id, children }: PropsWithChildren<{ id: s
onSelect={() => {
if (isEntryStarred) {
collectionSyncService.unstarEntry(id)
toast.info("Unstarred")
toast.success("Unstarred")
} else {
collectionSyncService.starEntry({
feedId,
entryId: id,
view,
})
toast.info("Starred")
toast.success("Starred")
}
}}
>

View File

@ -148,7 +148,7 @@ export const SubscriptionFeedItemContextMenu: FC<
const feed = getFeed(subscription.feedId)
if (!feed) return
Clipboard.setString(feed.url)
toast.info("Link copied to clipboard")
toast.success("Link copied to clipboard")
return
}
}

View File

@ -32,7 +32,7 @@ export const SubscriptionListItemContextMenu: FC<
onSelect: () => {
const list = getList(id)
if (!list) return
toast.info("Link copied to clipboard")
toast.success("Link copied to clipboard")
Clipboard.setString(`${env.VITE_WEB_URL}/share/lists/${list.id}`)
},
},

View File

@ -53,14 +53,14 @@ export const VideoContextMenu = ({ entryId, children }: VideoContextMenuProps) =
onSelect={() => {
if (isEntryStarred) {
collectionSyncService.unstarEntry(entryId)
toast.info("Unstarred")
toast.success("Unstarred")
} else {
collectionSyncService.starEntry({
feedId,
entryId,
view,
})
toast.info("Starred")
toast.success("Starred")
}
}}
>

View File

@ -81,7 +81,7 @@ export const RecommendationListItem: FC<{
key="copyMaintainerName"
onSelect={() => {
Clipboard.setString(m)
toast.info("Name copied to clipboard")
toast.success("Name copied to clipboard")
}}
>
<ContextMenu.ItemTitle>Copy Maintainer Name</ContextMenu.ItemTitle>

View File

@ -137,7 +137,7 @@ const HeaderRightActionsImpl = ({
const handleCopyLink = () => {
if (!entry?.url) return
Clipboard.setString(entry.url)
toast.info("Link copied to clipboard")
toast.success("Link copied to clipboard")
}
const handleOpenInBrowser = () => {

View File

@ -102,7 +102,6 @@ export const UnreadOnlyActionButton = ({ variant = "primary" }: HeaderActionButt
unreadOnly
? t("operation.toggle_unread_only.show_all.success")
: t("operation.toggle_unread_only.show_unread_only.success"),
{ position: "bottom" },
)
}}
selected={unreadOnly}

View File

@ -86,7 +86,7 @@ export const importOpml = async () => {
})
const { successfulItems, conflictItems, parsedErrorItems } = data
toast.info(
toast.success(
`Import successful, ${successfulItems.length} feeds were imported, ${conflictItems.length} feeds were already subscribed, and ${parsedErrorItems.length} feeds failed to import.`,
)
} catch (error) {

View File

@ -39,7 +39,7 @@
"operation.toggle_unread_only.show_all.label": "Show All",
"operation.toggle_unread_only.show_all.success": "Showing all entries",
"operation.toggle_unread_only.show_unread_only.label": "Show Unread Only",
"operation.toggle_unread_only.show_unread_only.success": "Showing unread entries only",
"operation.toggle_unread_only.show_unread_only.success": "Showing unread entries",
"operation.unfollow": "Unfollow",
"operation.unstar": "Unstar",
"profile.title": "{{name}}'s Profile",