Skip to content

Commit 1e6f9e0

Browse files
committed
chore : workspaceList -> workspace 로 네이밍 수정
1 parent 0cde56e commit 1e6f9e0

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

client/src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

client/src/components/WorkspaceList/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

client/src/pages/OAuth/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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('/');

client/src/types/user.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ export type TUser = {
88

99
export interface UserInfo {
1010
user: User;
11-
workspaceList: Workspace[];
11+
workspaces: Workspace[];
1212
}

client/src/types/workspace.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface Workspace {
99

1010
export type GetUserInfo = {
1111
user: User;
12-
workspaceList: Workspace[];
12+
workspaces: Workspace[];
1313
};
1414

1515
export type WorkspaceInfo = {

0 commit comments

Comments
 (0)