feat(mobile): success toast
This commit is contained in:
parent
53b2136889
commit
a65742e2bf
|
|
@ -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")
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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}`)
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 = () => {
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue