-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(store): move footer logic into modules
- Loading branch information
1 parent
6069882
commit ac0bbe5
Showing
19 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// @flow strict | ||
// eslint-disable-next-line import/prefer-default-export | ||
export { default as createReducer } from './createReducer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// @flow strict | ||
// eslint-disable-next-line import/prefer-default-export | ||
export { default as makeActionCreator } from './makeActionCreator'; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// @flow strict | ||
import * as types from '@/store/ActionTypes'; | ||
|
||
import makeActionCreator from '@/store/actions/makeActionCreator'; | ||
import { makeActionCreator } from '@/store/helpers/makeActionCreator'; | ||
|
||
export default makeActionCreator(types.CART_DATA, 'cart'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...pp/store/actions/footerData/footerData.js → ...tore/modules/footer/actions/footerData.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// @flow strict | ||
import * as types from '@/store/ActionTypes'; | ||
|
||
import makeActionCreator from '@/store/actions/makeActionCreator'; | ||
import { makeActionCreator } from '@/store/helpers/makeActionCreator'; | ||
|
||
export default makeActionCreator(types.FOOTER_DATA, 'footer'); |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// @flow strict | ||
// eslint-disable-next-line import/prefer-default-export | ||
export { default as footer } from './footer'; |
6 changes: 1 addition & 5 deletions
6
src/app/store/reducers/footer/index.js → ...ore/modules/footer/selectors/getFooter.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
// @flow strict | ||
|
||
import type { State } from '@/store/types/State'; | ||
|
||
import footer from './footer'; | ||
|
||
export default footer; | ||
|
||
// eslint-disable-next-line import/prefer-default-export | ||
export const getFooter = (state: State) => state.footer; |
2 changes: 1 addition & 1 deletion
2
src/app/store/actions/index.js → ...p/store/modules/footer/selectors/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// @flow strict | ||
// eslint-disable-next-line import/prefer-default-export | ||
export { footerData } from './footerData'; | ||
export { getFooter } from './getFooter'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters