mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-03-29 11:12:19 +01:00
Update useReferrer.tsx
This commit is contained in:
parent
314a8b8a63
commit
5a96ae8fd7
@ -5,7 +5,7 @@ import useLocalStorage from './useLocalStorage';
|
||||
const REFERRER_KEY = 'ref';
|
||||
export const UNKOWN_REFERRER = 'unknown';
|
||||
|
||||
export default function useReferrer() {
|
||||
export function useReferrer() {
|
||||
const history = useHistory();
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const refValue = urlParams.get(REFERRER_KEY);
|
||||
|
Loading…
x
Reference in New Issue
Block a user