mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-30 00:52:42 +03:00
added quick profile modal in leaderboard
This commit is contained in:
parent
fe76d5d2a6
commit
1c8de53510
@ -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