File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ function App() {
1515 const location = useLocation ( ) ;
1616
1717 const autoLogin = async ( ) => {
18- const { user, workspaceList } = await getAuth ( ) ;
18+ const { user, workspaces } = await getAuth ( ) ;
1919
2020 setIsLoaded ( true ) ;
2121
@@ -24,9 +24,9 @@ function App() {
2424 return ;
2525 }
2626
27- setUserInfo ( { user, workspaceList } ) ;
27+ setUserInfo ( { user, workspaces } ) ;
2828
29- const { id } = workspaceList [ 0 ] ;
29+ const { id } = workspaces [ 0 ] ;
3030 navigate ( `/workspace/${ id } ` ) ;
3131 } ;
3232
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function WorkspaceList() {
2020 if ( ! userContext . userInfo ) {
2121 return ;
2222 }
23- setWorkspaces ( userContext . userInfo . workspaceList ) ;
23+ setWorkspaces ( userContext . userInfo . workspaces ) ;
2424 } , [ ] ) ;
2525
2626 const [ selectedMenu , setSelectedMenu ] = useState < number > ( 0 ) ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function OAuthPage() {
2222
2323 userContext . setUserInfo ( authorizedUser ) ;
2424
25- const id = authorizedUser . workspaceList [ 0 ] . id ;
25+ const id = authorizedUser . workspaces [ 0 ] . id ;
2626 navigate ( `/workspace/${ id } ` ) ;
2727 } catch ( e ) {
2828 navigate ( '/' ) ;
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ export type TUser = {
88
99export interface UserInfo {
1010 user : User ;
11- workspaceList : Workspace [ ] ;
11+ workspaces : Workspace [ ] ;
1212}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export interface Workspace {
99
1010export type GetUserInfo = {
1111 user : User ;
12- workspaceList : Workspace [ ] ;
12+ workspaces : Workspace [ ] ;
1313} ;
1414
1515export type WorkspaceInfo = {
You can’t perform that action at this time.
0 commit comments