mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
refactor: changed per_page to 30 (#1734)
This commit is contained in:
parent
cc2e6182b6
commit
7287c27b73
@ -285,8 +285,7 @@ export const getPaginatedNotificationKey = (
|
|||||||
if (index === 0)
|
if (index === 0)
|
||||||
return `/api/workspaces/${workspaceSlug}/users/notifications?${objToQueryParams({
|
return `/api/workspaces/${workspaceSlug}/users/notifications?${objToQueryParams({
|
||||||
...params,
|
...params,
|
||||||
// TODO: change to '100:0:0'
|
cursor: "30:0:0",
|
||||||
cursor: "2:0:0",
|
|
||||||
})}`;
|
})}`;
|
||||||
|
|
||||||
const cursor = prevData?.next_cursor;
|
const cursor = prevData?.next_cursor;
|
||||||
|
@ -15,8 +15,7 @@ import { UNREAD_NOTIFICATIONS_COUNT, getPaginatedNotificationKey } from "constan
|
|||||||
// type
|
// type
|
||||||
import type { NotificationType, NotificationCount } from "types";
|
import type { NotificationType, NotificationCount } from "types";
|
||||||
|
|
||||||
// TODO: change to 100
|
const PER_PAGE = 30;
|
||||||
const PER_PAGE = 2;
|
|
||||||
|
|
||||||
const useUserNotification = () => {
|
const useUserNotification = () => {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
Loading…
Reference in New Issue
Block a user