Skip to content

Commit

Permalink
Change: Move useUserSessionTimeout hook to hooks directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernricks committed Jun 20, 2024
1 parent b6d140d commit ec2b6b9
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/web/components/menu/usermenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import Link from 'web/components/link/link';
import Theme from 'web/utils/theme';
import useGmp from 'web/utils/useGmp';
import useUserName from 'web/hooks/useUserName';
import useUserSessionTimeout from 'web/utils/useUserSessionTimeout';
import useUserSessionTimeout from 'web/hooks/useUserSessionTimeout';
import useUserTimezone from 'web/utils/useUserTimezone';

const UserMenu = styled.span`
Expand Down
2 changes: 1 addition & 1 deletion src/web/entities/BulkTags.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import PropTypes from 'web/utils/proptypes';
import SelectionType from 'web/utils/selectiontype';

import useGmp from 'web/utils/useGmp';
import useUserSessionTimeout from 'web/utils/useUserSessionTimeout';
import useUserSessionTimeout from 'web/hooks/useUserSessionTimeout';

import TagDialog from 'web/pages/tags/dialog';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import date from 'gmp/models/date';

import {setSessionTimeout as setSessionTimeoutAction} from 'web/store/usersettings/actions';

import {rendererWith, fireEvent} from '../testing';
import {rendererWith, fireEvent} from 'web/utils/testing';

import useUserSessionTimeout from '../useUserSessionTimeout';

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/web/pages/extras/cvssV4/CvssV4Calculator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
removeUnusedMetrics,
} from 'gmp/parser/cvssV4';

import useUserSessionTimeout from 'web/utils/useUserSessionTimeout';
import useUserSessionTimeout from 'web/hooks/useUserSessionTimeout';
import FormGroup from 'web/components/form/formgroup';
import Layout from 'web/components/layout/layout';
import Section from 'web/components/section/section';
Expand Down
2 changes: 1 addition & 1 deletion src/web/pages/extras/cvsscalculatorpage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import Divider from 'web/components/layout/divider';

import Section from 'web/components/section/section';

import useUserSessionTimeout from 'web/utils/useUserSessionTimeout';
import useUserSessionTimeout from 'web/hooks/useUserSessionTimeout';
import CvssV4Calculator from './cvssV4/CvssV4Calculator';

const StyledTextField = styled(TextField)`
Expand Down
2 changes: 1 addition & 1 deletion src/web/pages/portlists/listpage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {PORTLISTS_FILTER_FILTER} from 'gmp/models/filter';
import {isDefined, hasValue} from 'gmp/utils/identity';

import useCapabilities from 'web/hooks/useCapabilities';
import useUserSessionTimeout from 'web/utils/useUserSessionTimeout';
import useUserSessionTimeout from 'web/hooks/useUserSessionTimeout';

import useGmp from 'web/utils/useGmp';
import usePageFilter from 'web/hooks/usePageFilter';
Expand Down

0 comments on commit ec2b6b9

Please sign in to comment.