Compare commits
3 Commits
2027cd53d7
...
76c2626507
| Author | SHA1 | Date | |
|---|---|---|---|
| 76c2626507 | |||
| 5e43d640a2 | |||
| 6588278e0f |
@@ -1,5 +1,5 @@
|
||||
NEXT_PUBLIC_ENV=dev
|
||||
NEXT_PUBLIC_API_BASE=http://localhost:6100/api
|
||||
NEXT_PUBLIC_API_BASE=https://test-lg-cxdash.kric.com/api
|
||||
|
||||
ENV=dev
|
||||
API_BACK_SERVER=http://localhost:6101/api/v1
|
||||
|
||||
@@ -2,6 +2,6 @@ NEXT_PUBLIC_ENV=local
|
||||
NEXT_PUBLIC_API_BASE=http://localhost:6100/api
|
||||
|
||||
ENV=local
|
||||
API_CONTACT_SERVER=http://localhost:6101/api/v1
|
||||
API_BACK_SERVER=http://localhost:6101/api/v1
|
||||
API_KART_SERVER=https://rapi.kric.com/api/v1
|
||||
KART_API_KEY=4B726963-436F6E74616374-46726F6E74-402531213230
|
||||
@@ -2,6 +2,6 @@ NEXT_PUBLIC_ENV=prod
|
||||
NEXT_PUBLIC_API_BASE=http://localhost:6100/api
|
||||
|
||||
ENV=prod
|
||||
API_CONTACT_SERVER=http://localhost:6101/api/v1
|
||||
API_BACK_SERVER=http://localhost:6101/api/v1
|
||||
API_KART_SERVER=https://rapi.kric.com/api/v1
|
||||
KART_API_KEY=4B726963-436F6E74616374-46726F6E74-402531213230
|
||||
@@ -5,4 +5,4 @@ const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
export default nextConfig;
|
||||
@@ -12,8 +12,7 @@ export const useAuth = () => {
|
||||
const setFromLoginResponse = useCallback(
|
||||
(res: LoginUser, loginSeatNumber:string|null = null) => {
|
||||
setAuth({
|
||||
user: res,
|
||||
seatNumber: loginSeatNumber,
|
||||
user: res
|
||||
});
|
||||
},
|
||||
[setAuth],
|
||||
@@ -29,7 +28,6 @@ export const useAuth = () => {
|
||||
const logout = useCallback(() => {
|
||||
setAuth({
|
||||
user: null,
|
||||
seatNumber: null,
|
||||
});
|
||||
}, [setAuth]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user