-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: workspace veiw card initial fetch done
- Loading branch information
Showing
16 changed files
with
157 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { UserOrgs } from "app/api/user"; | ||
import { createContext } from "react"; | ||
|
||
export interface UserContextType{ | ||
username: String | null; | ||
setUsername: (name: String)=>void; | ||
userOrgs: UserOrgs | null; | ||
setUserOrgs: (user_Orgs: UserOrgs)=> void | ||
} | ||
|
||
const UserContext= createContext<UserContextType | undefined>(undefined); | ||
|
||
export default UserContext; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { FC, ReactNode, useState } from "react"; | ||
import UserContext from "./userContext"; | ||
import { UserOrgs } from "app/api/user"; | ||
|
||
interface Props{ | ||
children: ReactNode | ||
} | ||
|
||
const UserState: FC<Props>= ({children})=>{ | ||
|
||
const [username, setUsername] = useState<String | null>(null); | ||
const [userOrgs, setUserOrgs] = useState<UserOrgs|null>(null) | ||
|
||
return ( | ||
<UserContext.Provider value={{username, setUsername, userOrgs, setUserOrgs}} > | ||
|
||
{children} | ||
|
||
</UserContext.Provider> | ||
) | ||
} | ||
|
||
export default UserState |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export const CLIENT_ID = '149d2857118e05e729a8'; | ||
export const BACKEND_URL = 'http://13.233.127.61:808'; | ||
export const BACKEND_URL = 'http://13.233.127.61:8080'; | ||
export const AVATAR_API= "w9zrqHdDa4MsYB"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters