Skip to content

Commit

Permalink
Change: Move useUserTimezone 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 ec2b6b9 commit 68b3486
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/web/components/date/datetime.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/web/components/menu/usermenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
File renamed without changes.

0 comments on commit 68b3486

Please sign in to comment.