Skip to content

Commit

Permalink
Spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
nmanu1 committed Nov 24, 2021
1 parent d75fb4f commit 0ca09fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions sample-app/src/components/InputDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function InputDropdown({
if (!(React.isValidElement(child) && child.type === DropdownSection)) {
return child;
}

const modifiedOnClickOption = (option: Option, optionIndex: number) => {
child.props.onClickOption?.(option, optionIndex);
dispatch({ type: 'HideSections' });
Expand All @@ -94,7 +94,7 @@ export default function InputDropdown({
if (focusedSectionIndex === undefined) {
return React.cloneElement(child, { onLeaveSectionFocus, focusStatus: 'reset', onClickOption: modifiedOnClickOption });
} else if (index === focusedSectionIndex) {
return React.cloneElement(child, {
return React.cloneElement(child, {
onLeaveSectionFocus, focusStatus: 'active', onFocusChange: modifiedOnFocusChange, onClickOption: modifiedOnClickOption
});
} else {
Expand Down Expand Up @@ -123,7 +123,7 @@ export default function InputDropdown({

function handleDocumentClick(evt: MouseEvent) {
const target = evt.target as HTMLElement;
if (!(target.isSameNode(inputRef.current) || (dropdownRef.current?.contains(target)))) {
if (!(target.isSameNode(inputRef.current) || (dropdownRef.current?.contains(target)))) {
dispatch({ type: 'HideSections' });
}
}
Expand Down
6 changes: 3 additions & 3 deletions sample-app/src/components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function SearchBar({
placeholder,
isVertical,
geolocationOptions,
screenReaderInstructionsId
screenReaderInstructionsId
}: Props) {
const answersActions = useAnswersActions();
const query = useAnswersState(state => state.query.input);
Expand All @@ -37,8 +37,8 @@ export default function SearchBar({
* Allow a query search to wait on the response to the autocomplete request right
* before the search execution in order to retrieve the search intents
*/
const autocompletePromiseRef = useRef<Promise<AutocompleteResponse|undefined>>();
const [ autocompleteResponse, executeAutocomplete] = useAutocomplete(isVertical);
const autocompletePromiseRef = useRef<Promise<AutocompleteResponse | undefined>>();
const [autocompleteResponse, executeAutocomplete] = useAutocomplete(isVertical);

const options = autocompleteResponse?.results.map(result => {
return {
Expand Down

0 comments on commit 0ca09fc

Please sign in to comment.