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