mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-24 00:29:49 +00:00
refactor: HOCs named imports
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import { connect } from 'react-redux';
|
||||
import { getCurrenciesList } from '@/store/currencies/currencies.selector';
|
||||
|
||||
export default (mapState) => {
|
||||
export const withCurrencies = (mapState) => {
|
||||
const mapStateToProps = (state, props) => {
|
||||
const mapped = {
|
||||
currencies: state.currencies.data,
|
||||
|
||||
@@ -15,4 +15,4 @@ export const mapDispatchToProps = (dispatch) => ({
|
||||
requestDeleteCurrency: (currency_code) => dispatch(deleteCurrency({ currency_code })),
|
||||
});
|
||||
|
||||
export default connect(null, mapDispatchToProps);
|
||||
export const withCurrenciesActions = connect(null, mapDispatchToProps);
|
||||
|
||||
@@ -6,4 +6,4 @@ const mapStateToProps = (state, props) => ({
|
||||
currency: getCurrencyByCode(state, props),
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps);
|
||||
export const withCurrencyDetail = connect(mapStateToProps);
|
||||
|
||||
Reference in New Issue
Block a user