mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Dont show empty row state when loading data
This commit is contained in:
parent
13cbdbbf25
commit
60c77bb5f8
2 changed files with 7 additions and 3 deletions
|
|
@ -195,7 +195,9 @@ export default function EmailsPage(): JSX.Element {
|
|||
)
|
||||
})
|
||||
) : (
|
||||
<EmptySettingsRow text="No Email Addresses Found" />
|
||||
<EmptySettingsRow
|
||||
text={isValidating ? '' : 'No Email Addresses Found'}
|
||||
/>
|
||||
)}
|
||||
</SettingsTable>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import { formattedShortDate } from '../../lib/dateFormatting'
|
|||
import { Box } from '../../components/elements/LayoutPrimitives'
|
||||
|
||||
export default function SubscriptionsPage(): JSX.Element {
|
||||
const { subscriptions, revalidate } = useGetSubscriptionsQuery()
|
||||
const { subscriptions, revalidate, isValidating } = useGetSubscriptionsQuery()
|
||||
const [confirmUnsubscribeName, setConfirmUnsubscribeName] =
|
||||
useState<string | null>(null)
|
||||
|
||||
|
|
@ -69,7 +69,9 @@ export default function SubscriptionsPage(): JSX.Element {
|
|||
)
|
||||
})
|
||||
) : (
|
||||
<EmptySettingsRow text="No Email Subscriptions Found" />
|
||||
<EmptySettingsRow
|
||||
text={isValidating ? '' : 'No Email Subscriptions Found'}
|
||||
/>
|
||||
)}
|
||||
|
||||
{confirmUnsubscribeName ? (
|
||||
|
|
|
|||
Loading…
Reference in a new issue