diff --git a/native/navigation/app-navigator.react.js b/native/navigation/app-navigator.react.js
--- a/native/navigation/app-navigator.react.js
+++ b/native/navigation/app-navigator.react.js
@@ -21,7 +21,7 @@
ActionResultModalRouteName,
TextMessageTooltipModalRouteName,
ThreadSettingsMemberTooltipModalRouteName,
- RelationshipListItemTooltipModalRouteName,
+ UserRelationshipTooltipModalRouteName,
RobotextMessageTooltipModalRouteName,
ChatCameraModalRouteName,
VideoPlaybackModalRouteName,
@@ -41,7 +41,7 @@
import ThreadAvatarCameraModal from '../media/thread-avatar-camera-modal.react.js';
import UserAvatarCameraModal from '../media/user-avatar-camera-modal.react.js';
import VideoPlaybackModal from '../media/video-playback-modal.react.js';
-import RelationshipListItemTooltipModal from '../profile/relationship-list-item-tooltip-modal.react.js';
+import UserRelationshipTooltipModal from '../profile/user-relationship-tooltip-modal.react.js';
import PushHandler from '../push/push-handler.react.js';
import { getPersistor } from '../redux/persist.js';
import { RootContext } from '../root-context.js';
@@ -130,8 +130,8 @@
component={ThreadSettingsMemberTooltipModal}
/>
{
const coordinates = { x: pageX, y: pageY, width, height };
- this.props.navigate<'RelationshipListItemTooltipModal'>({
- name: RelationshipListItemTooltipModalRouteName,
+ this.props.navigate<'UserRelationshipTooltipModal'>({
+ name: UserRelationshipTooltipModalRouteName,
params: {
presentedFrom: this.props.relationshipListRoute.key,
initialCoordinates: coordinates,
diff --git a/native/profile/relationship-list-item-tooltip-modal.react.js b/native/profile/user-relationship-tooltip-modal.react.js
rename from native/profile/relationship-list-item-tooltip-modal.react.js
rename to native/profile/user-relationship-tooltip-modal.react.js
--- a/native/profile/relationship-list-item-tooltip-modal.react.js
+++ b/native/profile/user-relationship-tooltip-modal.react.js
@@ -26,12 +26,12 @@
type Action = 'unfriend' | 'block' | 'unblock';
-export type RelationshipListItemTooltipModalParams = TooltipParams<{
+export type UserRelationshipTooltipModalParams = TooltipParams<{
+relativeUserInfo: RelativeUserInfo,
}>;
type OnRemoveUserProps = {
- ...RelationshipListItemTooltipModalParams,
+ ...UserRelationshipTooltipModalParams,
+action: Action,
};
function useRelationshipAction(input: OnRemoveUserProps) {
@@ -84,7 +84,7 @@
}
function TooltipMenu(
- props: TooltipMenuProps<'RelationshipListItemTooltipModal'>,
+ props: TooltipMenuProps<'UserRelationshipTooltipModal'>,
): React.Node {
const { route, tooltipItem: TooltipItem } = props;
@@ -123,10 +123,11 @@
}
type Props = {
- +navigation: AppNavigationProp<'RelationshipListItemTooltipModal'>,
+ +navigation: AppNavigationProp<'UserRelationshipTooltipModal'>,
...
};
-class RelationshipListItemTooltipButton extends React.PureComponent {
+
+class UserRelationshipTooltipButton extends React.PureComponent {
render() {
return (
@@ -140,11 +141,11 @@
};
}
-const RelationshipListItemTooltipModal: React.ComponentType<
- BaseTooltipProps<'RelationshipListItemTooltipModal'>,
-> = createTooltip<'RelationshipListItemTooltipModal'>(
- RelationshipListItemTooltipButton,
+const UserRelationshipTooltipModal: React.ComponentType<
+ BaseTooltipProps<'UserRelationshipTooltipModal'>,
+> = createTooltip<'UserRelationshipTooltipModal'>(
+ UserRelationshipTooltipButton,
TooltipMenu,
);
-export default RelationshipListItemTooltipModal;
+export default UserRelationshipTooltipModal;