Skip to content

Commit

Permalink
feat(admin-ui): update IdleTimer component due to react-idle-timer up…
Browse files Browse the repository at this point in the history
…grade
  • Loading branch information
harryandriyan committed Oct 26, 2022
1 parent 1497915 commit 7157395
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion admin-ui/app/routes/Apps/Gluu/GluuSessionTimeout.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import React, { useRef, useState } from 'react'
import IdleTimer from 'react-idle-timer'
import SessionTimeoutDialog from './GluuSessionTimeoutDialog'
import { useNavigate } from 'react-router-dom'
import { withIdleTimer } from 'react-idle-timer'

let countdownInterval
let timeout

const IdleTimerComponent = ({ children }) => {
return children
}
const IdleTimer = withIdleTimer(IdleTimerComponent)

const SessionTimeout = ({ isAuthenticated }) => {
const [timeoutModalOpen, setTimeoutModalOpen] = useState(false)
const [timeoutCountdown, setTimeoutCountdown] = useState(0)
Expand Down

0 comments on commit 7157395

Please sign in to comment.