Switch to useShouldShowPtt hook
This commit is contained in:
6
src/useShouldShowPtt.js
Normal file
6
src/useShouldShowPtt.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { useLocation } from "react-router-dom";
|
||||
|
||||
export function useShouldShowPtt() {
|
||||
const { hash } = useLocation();
|
||||
return hash.startsWith("#ptt");
|
||||
}
|
||||
Reference in New Issue
Block a user