Skip to content

Commit

Permalink
refactor: Move src/store.ts to src/redux/store.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ldoppea authored and LucsT committed Jan 24, 2023
1 parent 51a225c commit dd95316
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { useCookieResyncOnResume } from '/hooks/useCookieResyncOnResume'
import { useGlobalAppState } from '/hooks/useGlobalAppState'
import { useNetService } from '/libs/services/NetService'
import { withSentry } from '/libs/monitoring/Sentry'
import { persistor, store } from './store'
import { persistor, store } from '/redux/store'

import { cleanConnectorsOnBootInBackground } from '/libs/connectors/cleanConnectorsOnBoot'

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/reduxHooks.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux'
import type { RootState, AppDispatch } from 'src/store'
import type { RootState, AppDispatch } from '/redux/store'

// Use throughout your app instead of plain `useDispatch` and `useSelector`
export const useAppDispatch: () => AppDispatch = useDispatch
Expand Down
2 changes: 1 addition & 1 deletion src/libs/connectors/cleanConnectorsOnBoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import CozyClient from 'cozy-client'
import { getErrorMessage } from '/libs/functions/getErrorMessage'
import { sendConnectorsLogs } from '/libs/connectors/sendConnectorsLogs'
import { CurrentConnectorState } from '/redux/ConnectorState/CurrentConnectorSlice'
import { store } from '/store'
import { store } from '/redux/store'

const log = Minilog('cleanConnectorsOnBoot')

Expand Down
2 changes: 1 addition & 1 deletion src/libs/connectors/sendConnectorsLogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Minilog from '@cozy/minilog'
import CozyClient from 'cozy-client'

import { clearLogs, spliceLogs } from '/redux/ConnectorState/ConnectorLogsSlice'
import { store } from '/store'
import { store } from '/redux/store'

const log = Minilog('sendConnectorsLogs')

Expand Down
2 changes: 1 addition & 1 deletion src/redux/ConnectorState/ConnectorLogsSlice.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createSlice, PayloadAction } from '@reduxjs/toolkit'

import type { RootState } from '/store'
import type { RootState } from '/redux/store'

export interface ConnectorLogsState {
logs: string[]
Expand Down
2 changes: 1 addition & 1 deletion src/redux/ConnectorState/CurrentConnectorSlice.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createSlice, PayloadAction } from '@reduxjs/toolkit'

import type { RootState } from '/store'
import type { RootState } from '/redux/store'

export interface CurrentConnectorState {
currentRunningConnector?: string
Expand Down
File renamed without changes.

0 comments on commit dd95316

Please sign in to comment.