refactor(frontend): titlecard behavior changed to allow clicking anywhere to go through to title

mobile behavior remains mostly the same, except after the first click, a second click anywhere else
will go through to the title.
This commit is contained in:
sct
2020-12-15 15:49:59 +00:00
parent 7c08809501
commit e8776fd336
5 changed files with 272 additions and 154 deletions

7
src/hooks/useIsTouch.ts Normal file
View File

@@ -0,0 +1,7 @@
import { useContext } from 'react';
import { InteractionContext } from '../context/InteractionContext';
export const useIsTouch = (): boolean => {
const { isTouch } = useContext(InteractionContext);
return isTouch;
};