added notification pagination

main
alex 2023-09-03 21:52:47 +02:00
parent b1ed49611c
commit 6830195c77
3 changed files with 3 additions and 6 deletions

View File

@ -84,8 +84,6 @@ export default function HeaderMenu({
style={{ fontSize: "16px", width: 64, height: 64 }}
/>
<h1 style={{ fontSize: "16px", margin: 0 }}>Header</h1>
<Button
type="text"
icon={

View File

@ -972,8 +972,6 @@ export function handleWebSocketMessage(
break;
case ReceivedMessagesCommands.NewNotification:
if (headerContext.paginationPageRef.current === 1) {
console.log("new body", body);
headerContext.setNotificationResponse((obj) => {
if (obj === null) return obj;

View File

@ -199,8 +199,9 @@ export function setUserSessionToLocalStorage(session) {
/**
* websocket
*/
let l = "loading...";
//let l = "loading...";
/*
let webSocketContextPreview = {
User: {
Id: "",
@ -222,7 +223,7 @@ let webSocketContextPreview = {
UserProfileStateUsername: l,
UserProfileStateEmail: l,
AdminAreaRolesPermissions: [],
};
}; */
//export const WebSocketContext = createContext(webSocketContextPreview);