mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-02 10:54:59 +03:00
Removed darkThemeContainer
This commit is contained in:
parent
6a109fa773
commit
60322ecba3
@ -10,7 +10,7 @@ import { updateActiveBottomTab } from '../../../redux/actions/uiAction';
|
||||
import ROUTES from '../../../constants/routeNames';
|
||||
|
||||
// Container
|
||||
import { DarkThemeContainer } from '../../../containers';
|
||||
import { ThemeContainer } from '../../../containers';
|
||||
|
||||
// Components
|
||||
import TabBar from './tabbar';
|
||||
@ -44,7 +44,7 @@ const BottomTabBarView = ({
|
||||
}, [dispatch, index, routes]);
|
||||
|
||||
return (
|
||||
<DarkThemeContainer>
|
||||
<ThemeContainer>
|
||||
{({ isDarkTheme }) => (
|
||||
<SafeAreaView style={styles.wrapper}>
|
||||
<TabBar
|
||||
@ -74,7 +74,7 @@ const BottomTabBarView = ({
|
||||
</TabBar>
|
||||
</SafeAreaView>
|
||||
)}
|
||||
</DarkThemeContainer>
|
||||
</ThemeContainer>
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -1,14 +0,0 @@
|
||||
import { React } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
const DarkThemeContainer = ({ children, isDarkTheme }) =>
|
||||
children &&
|
||||
children({
|
||||
isDarkTheme,
|
||||
});
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
isDarkTheme: state.application.isDarkTheme,
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps)(DarkThemeContainer);
|
@ -1,4 +1,3 @@
|
||||
import DarkThemeContainer from './darkThemeContainer';
|
||||
import InAppPurchaseContainer from './inAppPurchaseContainer';
|
||||
import PointsContainer from './pointsContainer';
|
||||
import ProfileContainer from './profileContainer';
|
||||
@ -9,7 +8,6 @@ import TransferContainer from './transferContainer';
|
||||
import ThemeContainer from './themeContainer';
|
||||
|
||||
export {
|
||||
DarkThemeContainer,
|
||||
InAppPurchaseContainer,
|
||||
PointsContainer,
|
||||
ProfileContainer,
|
||||
|
Loading…
Reference in New Issue
Block a user