mirror of
https://github.com/urbit/shrub.git
synced 2024-12-24 03:14:30 +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 OmniboxInput from './OmniboxInput';
|
||||||
import OmniboxResult from './OmniboxResult';
|
import OmniboxResult from './OmniboxResult';
|
||||||
import { deSig } from '~/logic/lib/util';
|
import { deSig } from '~/logic/lib/util';
|
||||||
|
import { withLocalState } from '~/logic/state/local';
|
||||||
|
|
||||||
import defaultApps from '~/logic/lib/default-apps';
|
import defaultApps from '~/logic/lib/default-apps';
|
||||||
import {useOutsideClick} from '~/logic/lib/useOutsideClick';
|
import {useOutsideClick} from '~/logic/lib/useOutsideClick';
|
||||||
@ -51,8 +52,8 @@ export function Omnibox(props: OmniboxProps) {
|
|||||||
}, [props.contacts, query]);
|
}, [props.contacts, query]);
|
||||||
|
|
||||||
const selectedGroup = useMemo(
|
const selectedGroup = useMemo(
|
||||||
() => location.pathname.startsWith('/~landscape/ship/')
|
() => location.pathname.startsWith('/~landscape/ship/')
|
||||||
? '/' + location.pathname.split('/').slice(2,5).join('/')
|
? '/' + location.pathname.split('/').slice(2,5).join('/')
|
||||||
: null,
|
: null,
|
||||||
[location.pathname]
|
[location.pathname]
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user