Merge pull request #2262 from ecency/sa/leaderboard-quick-profile

added quick profile modal in leaderboard
This commit is contained in:
Feruz M 2022-04-14 13:03:14 +03:00 committed by GitHub
commit 5a9f3c2b14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) => {