remove comments
This commit is contained in:
@@ -4,7 +4,7 @@ import { useKeepOnline } from "@/hooks/useKeepOnline";
|
|||||||
|
|
||||||
const KeepOnline = () => {
|
const KeepOnline = () => {
|
||||||
useKeepOnline({
|
useKeepOnline({
|
||||||
interval: 1000 * 60 * 1, // 1 minute
|
interval: 1000 * 60 * 1,
|
||||||
enabled: true,
|
enabled: true,
|
||||||
onError: (error) => {
|
onError: (error) => {
|
||||||
console.error("Keep online error:", error);
|
console.error("Keep online error:", error);
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import KeepOnline from "@/components/KeepOnline";
|
|||||||
const KeepOnlineWrapper = () => {
|
const KeepOnlineWrapper = () => {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
|
|
||||||
// Only render KeepOnline on dashboard pages
|
|
||||||
if (!pathname?.includes("/dashboard")) {
|
if (!pathname?.includes("/dashboard")) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ interface UseKeepOnlineOptions {
|
|||||||
|
|
||||||
export const useKeepOnline = (options: UseKeepOnlineOptions = {}) => {
|
export const useKeepOnline = (options: UseKeepOnlineOptions = {}) => {
|
||||||
const {
|
const {
|
||||||
interval = 1000 * 60 * 1, // 1 minute default
|
interval = 1000 * 60 * 1,
|
||||||
enabled = true,
|
enabled = true,
|
||||||
onError
|
onError
|
||||||
} = options;
|
} = options;
|
||||||
|
|||||||
Reference in New Issue
Block a user