mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-02 10:41:54 +02:00
🌐 Better way to store times (#1037)
This commit is contained in:
parent
7b996aa24f
commit
08729168d2
14 changed files with 150 additions and 29 deletions
|
@ -27,7 +27,8 @@ export const UserContext = React.createContext<{
|
|||
} | null>(null);
|
||||
|
||||
export const useUser = () => {
|
||||
return useRequiredContext(UserContext, "UserContext");
|
||||
const value = useRequiredContext(UserContext, "UserContext");
|
||||
return { ...value, isInternalUser: value.user.email?.endsWith("@rallly.co") };
|
||||
};
|
||||
|
||||
export const useAuthenticatedUser = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue