Differential D5220 Diff 17235 web/modals/threads/settings/thread-settings-relationship-button.react.js
Changeset View
Changeset View
Standalone View
Standalone View
web/modals/threads/settings/thread-settings-relationship-button.react.js
Show All 34 Lines | |||||
const loadingStatusSelector = createLoadingStatusSelector( | const loadingStatusSelector = createLoadingStatusSelector( | ||||
updateRelationshipsActionTypes, | updateRelationshipsActionTypes, | ||||
); | ); | ||||
type ButtonProps = { | type ButtonProps = { | ||||
+relationshipButton: RelationshipButton, | +relationshipButton: RelationshipButton, | ||||
+otherUserInfo: UserInfo, | +otherUserInfo: UserInfo, | ||||
+setErrorMessage?: SetState<string>, | +setErrorMessage?: SetState<?string>, | ||||
}; | }; | ||||
function ThreadSettingsRelationshipButton(props: ButtonProps): React.Node { | function ThreadSettingsRelationshipButton(props: ButtonProps): React.Node { | ||||
const { relationshipButton, otherUserInfo, setErrorMessage } = props; | const { relationshipButton, otherUserInfo, setErrorMessage } = props; | ||||
const disabled = useSelector(loadingStatusSelector) === 'loading'; | const disabled = useSelector(loadingStatusSelector) === 'loading'; | ||||
const { username } = otherUserInfo; | const { username } = otherUserInfo; | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |