Change hashtags and mentions in bios to open in-app in web UI (#24643)

This commit is contained in:
Eugen Rochko
2023-04-25 06:33:21 +02:00
committed by GitHub
parent e9a79d46cd
commit 8099ba04be
6 changed files with 82 additions and 9 deletions

View File

@@ -161,9 +161,9 @@ class Search extends React.PureComponent {
handleURLClick = () => {
const { router } = this.context;
const { onOpenURL } = this.props;
const { value, onOpenURL } = this.props;
onOpenURL(router.history);
onOpenURL(value, router.history);
};
handleStatusSearch = () => {

View File

@@ -34,8 +34,8 @@ const mapDispatchToProps = dispatch => ({
dispatch(showSearch());
},
onOpenURL (routerHistory) {
dispatch(openURL(routerHistory));
onOpenURL (q, routerHistory) {
dispatch(openURL(q, routerHistory));
},
onClickSearchResult (q, type) {