Fixed mobile not toggling on/off properly

- Chrome & Firefox Mobile issue
- Despite not having hover in JS, CSS :hover selector was activating
- Tiny, inactive mobile-only button was clickable
- Fixed duplicate key issue in icon links
This commit is contained in:
Xevion
2022-12-28 20:19:41 -06:00
parent 5446b5093f
commit 253930aac2
4 changed files with 29 additions and 33 deletions

View File

@@ -6,14 +6,6 @@ export function classNames(...classes: (string | null | undefined)[]) {
return classes.filter(Boolean).join(" ");
}
/**
* A handler that simply calls the `stopPropagation` method on an event.
* @param event The event to prevent propagation on.
*/
export const stopPropagation = (event: Event) => {
event.stopPropagation();
};
const isClient = (): boolean => {
return typeof window !== "undefined";
}