Switch to useShouldShowPtt hook

This commit is contained in:
Robert Long
2022-05-03 10:32:06 -07:00
parent be01a4bd81
commit dbdb82bd74
4 changed files with 30 additions and 21 deletions

6
src/useShouldShowPtt.js Normal file
View File

@@ -0,0 +1,6 @@
import { useLocation } from "react-router-dom";
export function useShouldShowPtt() {
const { hash } = useLocation();
return hash.startsWith("#ptt");
}