only show bookmarks nux to existing users
This commit is contained in:
@@ -17,6 +17,7 @@ import {BookmarksAnnouncement} from '#/components/dialogs/nuxs/BookmarksAnnounce
|
|||||||
* NUXs
|
* NUXs
|
||||||
*/
|
*/
|
||||||
import {isSnoozed, snooze, unsnooze} from '#/components/dialogs/nuxs/snoozing'
|
import {isSnoozed, snooze, unsnooze} from '#/components/dialogs/nuxs/snoozing'
|
||||||
|
import {isExistingUserAsOf} from './utils'
|
||||||
|
|
||||||
type Context = {
|
type Context = {
|
||||||
activeNux: Nux | undefined
|
activeNux: Nux | undefined
|
||||||
@@ -34,6 +35,12 @@ const queuedNuxs: {
|
|||||||
}[] = [
|
}[] = [
|
||||||
{
|
{
|
||||||
id: Nux.BookmarksAnnouncement,
|
id: Nux.BookmarksAnnouncement,
|
||||||
|
enabled: ({currentProfile}) => {
|
||||||
|
return isExistingUserAsOf(
|
||||||
|
'2025-09-08T00:00:00.000Z',
|
||||||
|
currentProfile.createdAt,
|
||||||
|
)
|
||||||
|
},
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user