mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 20:01:56 +03:00
Merge pull request #2262 from ecency/sa/leaderboard-quick-profile
added quick profile modal in leaderboard
This commit is contained in:
commit
5a9f3c2b14
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user