Skip to content

Commit

Permalink
fix(template-bod): rename store to stores directory
Browse files Browse the repository at this point in the history
  • Loading branch information
sabertazimi committed Sep 3, 2021
1 parent eca228f commit 4a2d9e9
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/cra-template-bod/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import { Provider } from 'react-redux';
import { BrowserRouter } from 'react-router-dom';
import App from './App';
import store from './store';
import store from './stores';

test('renders learn react link', () => {
const { getByText } = render(
Expand Down
2 changes: 1 addition & 1 deletion packages/cra-template-bod/src/components/Counter/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { AppDispatch } from '../../store';
import { AppDispatch } from '../../stores';
import styles from './index.module.css';

interface CounterProps {
Expand Down
2 changes: 1 addition & 1 deletion packages/cra-template-bod/src/containers/Counter/slice.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit';
import { AppThunk, RootState } from '../../store';
import { AppThunk, RootState } from '../../stores';
import { fetchCount } from './service';

export interface CounterState {
Expand Down
2 changes: 1 addition & 1 deletion packages/cra-template-bod/src/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux';
import type { AppDispatch, RootState } from '../store';
import type { AppDispatch, RootState } from '../stores';

// Use throughout your app instead of plain `useDispatch` and `useSelector`
export const useAppDispatch = () => useDispatch<AppDispatch>();
Expand Down
2 changes: 1 addition & 1 deletion packages/cra-template-bod/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { BrowserRouter } from 'react-router-dom';
import App from './App';
import './index.css';
import reportWebVitals from './reportWebVitals';
import store from './store';
import store from './stores';

ReactDOM.render(
<React.StrictMode>
Expand Down

0 comments on commit 4a2d9e9

Please sign in to comment.