Skip to content

Commit

Permalink
Remove untyped useDispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Jan 8, 2025
1 parent 8206d8d commit 9c40c53
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import React, {
type CSSProperties,
} from 'react';
import { Trans, useTranslation } from 'react-i18next';
import { useDispatch } from 'react-redux';

import { addNotification, pushModal } from 'loot-core/client/actions';
import { send } from 'loot-core/src/platform/client/fetch';
Expand All @@ -31,6 +30,7 @@ import { View } from '../../common/View';

import { UserAccessHeader } from './UserAccessHeader';
import { UserAccessRow } from './UserAccessRow';

Check warning on line 32 in packages/desktop-client/src/components/admin/UserAccess/UserAccess.tsx

View workflow job for this annotation

GitHub Actions / lint

There should be at least one empty line between import groups
import { useAppDispatch } from '../../../redux';

Check warning on line 33 in packages/desktop-client/src/components/admin/UserAccess/UserAccess.tsx

View workflow job for this annotation

GitHub Actions / lint

`../../../redux` import should occur before import of `../../../style`

type ManageUserAccessContentProps = {
isModal: boolean;
Expand Down Expand Up @@ -268,7 +268,7 @@ type LockToggleProps = {

function LockToggle({ style, onToggleSave }: LockToggleProps) {
const [hover, setHover] = useState(false);
const dispatch = useDispatch();
const dispatch = useAppDispatch();

return (
<Button
Expand Down

0 comments on commit 9c40c53

Please sign in to comment.