diff --git a/src/web/components/date/datetime.jsx b/src/web/components/date/datetime.jsx index 21b27e5bfd..5f673c643b 100644 --- a/src/web/components/date/datetime.jsx +++ b/src/web/components/date/datetime.jsx @@ -8,7 +8,7 @@ import {dateTimeWithTimeZone, ensureDate} from 'gmp/locale/date'; import {isDefined, hasValue} from 'gmp/utils/identity'; import PropTypes from 'web/utils/proptypes'; -import useUserTimezone from 'web/utils/useUserTimezone'; +import useUserTimezone from 'web/hooks/useUserTimezone'; const DateTime = ({formatter = dateTimeWithTimeZone, timezone, date}) => { date = ensureDate(date); diff --git a/src/web/components/menu/usermenu.jsx b/src/web/components/menu/usermenu.jsx index 64d411423c..83a68623f2 100644 --- a/src/web/components/menu/usermenu.jsx +++ b/src/web/components/menu/usermenu.jsx @@ -25,7 +25,7 @@ import Theme from 'web/utils/theme'; import useGmp from 'web/utils/useGmp'; import useUserName from 'web/hooks/useUserName'; import useUserSessionTimeout from 'web/hooks/useUserSessionTimeout'; -import useUserTimezone from 'web/utils/useUserTimezone'; +import useUserTimezone from 'web/hooks/useUserTimezone'; const UserMenu = styled.span` display: inline-flex; diff --git a/src/web/utils/__tests__/useUserTimezone.jsx b/src/web/hooks/__tests__/useUserTimezone.jsx similarity index 94% rename from src/web/utils/__tests__/useUserTimezone.jsx rename to src/web/hooks/__tests__/useUserTimezone.jsx index efe8b82bec..5299cc0bc0 100644 --- a/src/web/utils/__tests__/useUserTimezone.jsx +++ b/src/web/hooks/__tests__/useUserTimezone.jsx @@ -7,7 +7,7 @@ import {describe, test, expect} from '@gsa/testing'; import {setTimezone as setTimezoneAction} from 'web/store/usersettings/actions'; -import {rendererWith, fireEvent} from '../testing'; +import {rendererWith, fireEvent} from 'web/utils/testing'; import useUserTimezone from '../useUserTimezone'; diff --git a/src/web/utils/useUserTimezone.js b/src/web/hooks/useUserTimezone.js similarity index 100% rename from src/web/utils/useUserTimezone.js rename to src/web/hooks/useUserTimezone.js