ok mantab
This commit is contained in:
@@ -235,6 +235,13 @@ function App() {
|
|||||||
socket.on("transaction_created", async (data) => {
|
socket.on("transaction_created", async (data) => {
|
||||||
console.log("transaction notification");
|
console.log("transaction notification");
|
||||||
setModal("new_transaction", data);
|
setModal("new_transaction", data);
|
||||||
|
|
||||||
|
navigator.serviceWorker.ready.then((registration) => {
|
||||||
|
registration.showNotification("New Transaction", {
|
||||||
|
body: `A new transaction was created: ${data.transactionDetails}`, // Customize as needed
|
||||||
|
icon: "icon.png", // Optional icon
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on("checkUserTokenRes", async (data) => {
|
socket.on("checkUserTokenRes", async (data) => {
|
||||||
|
|||||||
@@ -46,4 +46,5 @@
|
|||||||
top: 30%;
|
top: 30%;
|
||||||
z-index: 200;
|
z-index: 200;
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ const ButtonWithReplica = ({ children }) => {
|
|||||||
const handleClick = () => {
|
const handleClick = () => {
|
||||||
setIsActive(true);
|
setIsActive(true);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
setIsActive(false);
|
// setIsActive(false);
|
||||||
}, 1000); // Duration of the animation
|
}, 10000); // Duration of the animation
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.Transactions {
|
.Transactions {
|
||||||
overflow-x: auto;
|
overflow-x: hidden;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user