mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-02 02:30:29 +00:00
Add state reactive variables
This commit is contained in:
+10
-1
@@ -1 +1,10 @@
|
||||
export {};
|
||||
import { makeVar } from '@apollo/client';
|
||||
import { UserResponseModel } from './types';
|
||||
|
||||
export const tokenVar = makeVar<string | undefined>(undefined);
|
||||
|
||||
export const roleVar = makeVar<
|
||||
'client' | 'productOwner' | 'developer' | 'admin' | undefined
|
||||
>(undefined);
|
||||
|
||||
export const userVar = makeVar<UserResponseModel | undefined>(undefined);
|
||||
|
||||
Reference in New Issue
Block a user