mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
cleanup & animation improvement
This commit is contained in:
@@ -235,3 +235,8 @@ export function useView(): FormStatus {
|
||||
return ready ? 'results' : 'form';
|
||||
}, [status, form]);
|
||||
}
|
||||
|
||||
export function useFormInteractive(): boolean {
|
||||
const { status, selections } = useFormState(({ status, selections }) => ({ status, selections }));
|
||||
return status === 'results' || selections.queryLocation.length > 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user