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