mirror of
https://github.com/urbit/shrub.git
synced 2024-12-23 19:05:48 +03:00
leap: add missing import
This commit is contained in:
parent
6fa0cd29e2
commit
639372e58f
@ -10,6 +10,7 @@ import makeIndex from '~/logic/lib/omnibox';
|
||||
import OmniboxInput from './OmniboxInput';
|
||||
import OmniboxResult from './OmniboxResult';
|
||||
import { deSig } from '~/logic/lib/util';
|
||||
import { withLocalState } from '~/logic/state/local';
|
||||
|
||||
import defaultApps from '~/logic/lib/default-apps';
|
||||
import {useOutsideClick} from '~/logic/lib/useOutsideClick';
|
||||
@ -51,8 +52,8 @@ export function Omnibox(props: OmniboxProps) {
|
||||
}, [props.contacts, query]);
|
||||
|
||||
const selectedGroup = useMemo(
|
||||
() => location.pathname.startsWith('/~landscape/ship/')
|
||||
? '/' + location.pathname.split('/').slice(2,5).join('/')
|
||||
() => location.pathname.startsWith('/~landscape/ship/')
|
||||
? '/' + location.pathname.split('/').slice(2,5).join('/')
|
||||
: null,
|
||||
[location.pathname]
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user