added quick profile modal in leaderboard

This commit is contained in:
Sadaqat Ali 2022-04-14 09:32:15 +05:00
parent fe76d5d2a6
commit 1c8de53510

View File

@ -12,6 +12,7 @@ import ROUTES from '../../../constants/routeNames';
// Component
import LeaderboardView from '../view/leaderboardView';
import { showProfileModal } from '../../../redux/actions/uiAction';
/*
* Props Name Description Value
@ -39,14 +40,8 @@ class LeaderboardContainer extends PureComponent {
}
_handleOnUserPress = (username) => {
const { navigation } = this.props;
navigation.navigate({
routeName: ROUTES.SCREENS.PROFILE,
params: {
username,
},
});
const { dispatch } = this.props;
dispatch(showProfileModal(username));
};
_fetchLeaderBoard = async (selectedFilter, index) => {