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 }} style={{ fontSize: "16px", width: 64, height: 64 }}
/> />
<h1 style={{ fontSize: "16px", margin: 0 }}>Header</h1>
<Button <Button
type="text" type="text"
icon={ icon={

View File

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

View File

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