Add dismiss on tap outside extension

This commit is contained in:
Jackson Harper
2024-03-21 10:17:50 +08:00
parent 14fc731669
commit 4184d64341
7 changed files with 35 additions and 9 deletions

View File

@ -14,8 +14,11 @@ import { unsubscribeDiscoverFeedMutation } from '../../../lib/networking/mutatio
import { applyStoredTheme } from '../../../lib/themeUpdater'
import { showErrorToast, showSuccessToast } from '../../../lib/toastHelpers'
import { formatMessage } from '../../../locales/en/messages'
import { useGetDiscoverFeeds } from "../../../lib/networking/queries/useGetDiscoverFeeds"
import { UpdateDiscoverFeedInput, updateDiscoverFeedMutation } from "../../../lib/networking/mutations/updateDiscoverFeedMutation"
import { useGetDiscoverFeeds } from '../../../lib/networking/queries/useGetDiscoverFeeds'
import {
UpdateDiscoverFeedInput,
updateDiscoverFeedMutation,
} from '../../../lib/networking/mutations/updateDiscoverFeedMutation'
export default function DiscoverFeedsSettings(): JSX.Element {
const router = useRouter()
@ -53,7 +56,9 @@ export default function DiscoverFeedsSettings(): JSX.Element {
async function onDelete(id: string): Promise<void> {
const result = await unsubscribeDiscoverFeedMutation(id)
if (result) {
showSuccessToast('Discover Feed unsubscribed', { position: 'bottom-right' })
showSuccessToast('Discover Feed unsubscribed', {
position: 'bottom-right',
})
} else {
showErrorToast('Failed to unsubscribe', { position: 'bottom-right' })
}
@ -74,7 +79,7 @@ export default function DiscoverFeedsSettings(): JSX.Element {
suggestionInfo={{
title: 'Add RSS and Atom feeds to your Omnivore account',
message:
'When you add a new feed the last 24hrs of items, or at least one item will be added to your account. Feeds will be checked for updates every hour, and new items will be added to your Following. You can also add feeds to your Library by checking the box below.',
'When you add a new feed the last 24hrs of items, or at least one item will be added to your account. Feeds will be checked for updates every four hours, and new items will be added to your Following. You can also add feeds to your Library by checking the box below.',
docs: 'https://docs.omnivore.app/using/feeds.html',
key: '--settings-feeds-show-help',
CTAText: 'Add a feed',

View File

@ -131,7 +131,7 @@ export default function Rss(): JSX.Element {
suggestionInfo={{
title: 'Add RSS and Atom feeds to your Omnivore account',
message:
'When you add a new feed the last 24hrs of items, or at least one item will be added to your account. Feeds will be checked for updates every hour, and new items will be added to your Following. You can also add feeds to your Library by checking the box below.',
'When you add a new feed the last 24hrs of items, or at least one item will be added to your account. Feeds will be checked for updates every four hours, and new items will be added to your Following. You can also add feeds to your Library by checking the box below.',
docs: 'https://docs.omnivore.app/using/feeds.html',
key: '--settings-feeds-show-help',
CTAText: 'Add a feed',

View File

@ -86,7 +86,7 @@
font-size: 1.43em !important;
}
.article-inner-css h3 {
font-size: 1.25em !important;
font-size: 1.0em !important;
}
.article-inner-css h4,
.article-inner-css h5,