added notification pagination
parent
b1ed49611c
commit
6830195c77
|
@ -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={
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue