Skip to content

Commit

Permalink
make useSearchRealm reusable
Browse files Browse the repository at this point in the history
  • Loading branch information
jrief committed Oct 23, 2024
1 parent de49195 commit beb93ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/finder/Storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,6 @@ export function useCookie(key, initial) : [any, (value: any) => any] {
},
];
}


export const useSearchRealm = initial => useCookie('django-finder-search-realm', initial);

0 comments on commit beb93ae

Please sign in to comment.