Skip to content

Commit

Permalink
Fixed format
Browse files Browse the repository at this point in the history
  • Loading branch information
adithyanotfound committed Sep 27, 2024
1 parent 5860f8a commit 9f6735c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/state/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useDispatch } from 'react-redux'
import type { AppDispatch } from './store'
import { useDispatch } from 'react-redux';
import type { AppDispatch } from './store';

// Use throughout your app instead of plain `useDispatch` and `useSelector`
export const useAppDispatch = useDispatch.withTypes<AppDispatch>()
export const useAppDispatch = useDispatch.withTypes<AppDispatch>();
2 changes: 1 addition & 1 deletion src/state/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export const store = configureStore({
reducer: reducers,
});

export type AppDispatch = typeof store.dispatch
export type AppDispatch = typeof store.dispatch;

0 comments on commit 9f6735c

Please sign in to comment.