minor adjustements on userSearchDropdown

pull/712/head
Audric Ackermann 5 years ago
parent 6aa2ebd0b9
commit 791626c60e

@ -243,6 +243,7 @@ $session-compose-margin: 20px;
&:hover { &:hover {
font-weight: bold; font-weight: bold;
color: $session-color-white; color: $session-color-white;
background: $session-shade-8;
} }
} }
} }

@ -8,7 +8,7 @@ export type PropsData = {
contacts: Array<ConversationListItemPropsType>; contacts: Array<ConversationListItemPropsType>;
regionCode: string; regionCode: string;
searchTerm: string; searchTerm: string;
selectedContact: Number; selectedContact: number;
onContactSelected: any; onContactSelected: any;
}; };

@ -25,7 +25,7 @@ export class UserSearchDropdown extends React.Component<Props, State> {
this.handleNavigation = this.handleNavigation.bind(this); this.handleNavigation = this.handleNavigation.bind(this);
this.handleContactSelected = this.handleContactSelected.bind(this); this.handleContactSelected = this.handleContactSelected.bind(this);
this.state = { this.state = {
selectedContact: 0, selectedContact: -1,
}; };
} }
@ -86,7 +86,7 @@ export class UserSearchDropdown extends React.Component<Props, State> {
} }
public updateSearch(data: string) { public updateSearch(data: string) {
this.setState({ selectedContact: 0 }); this.setState({ selectedContact: -1 });
this.props.updateSearch(data); this.props.updateSearch(data);
} }

Loading…
Cancel
Save