Skip to content

Commit

Permalink
Merge pull request #710 from devanshpurani7/6066_patch
Browse files Browse the repository at this point in the history
updated react-idle-timer library
  • Loading branch information
ckpaliwal authored May 16, 2024
2 parents 5c01e99 + f7ae6e2 commit dc6b003
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
19 changes: 9 additions & 10 deletions packages/apollo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/apollo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-i18next": "^14.1.1",
"react-idle-timer": "^4.2.9",
"react-idle-timer": "^5.7.2",
"react-redux": "^9.1.1",
"react-router-dom": "^6.23.0",
"redux": "^5.0.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/apollo/src/components/Main/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { Link, Modal } from 'carbon-components-react';
import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import IdleTimer from 'react-idle-timer';
import { withIdleTimer } from 'react-idle-timer';
import { withTranslation } from 'react-i18next';
import { connect } from 'react-redux';
import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom';
Expand Down Expand Up @@ -263,7 +263,7 @@ class Main extends Component {

{this.props.inactivity_timeouts_enabled && (
<div>
<IdleTimer
<withIdleTimer
ref={ref => {
this.idleWarningTimer = ref;
}}
Expand All @@ -273,7 +273,7 @@ class Main extends Component {
debounce={1000}
timeout={this.props.max_idle_warning_time}
/>
<IdleTimer
<withIdleTimer
ref={ref => {
this.idleTimer = ref;
}}
Expand Down

0 comments on commit dc6b003

Please sign in to comment.