Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

리다이렉트 로직 제거, 조직 이름 20자 이하로 수정 #54

Merged
merged 2 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ const NewWorkSpacePage = () => {
placeholder="회사, 단체, 조직 이름 입력."
value={orgName}
onChange={(e) => setOrgName(e.target.value)}
maxLength={20}
required={true}
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/(providers)/(root)/auth/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const LoginPage = () => {

useEffect(() => {
if (user) {
alert('이미 로그인 중입니다.');
// alert('이미 로그인 중입니다.');
route.push('/home'); // TODO : 메인 홈 화면 이동 변경
}
}, []);
Expand Down
14 changes: 7 additions & 7 deletions src/providers/AuthProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ export default function AuthProvider({ accessToken, children }: AuthProviderProp
router.refresh();
}

if (!session) {
return router.replace('/landing');
}
// if (!session) {
// return router.replace('/landing');
// }

// TODO : 세션이 있으면? 워크스페이스 가입 대상자 인지 먼저 확인 로직 작성
if (session) {
console.log('userId', userId);
console.log('workspaceId', workspaceId);
}
// if (session) {
// console.log('userId', userId);
// console.log('workspaceId', workspaceId);
// }
});

return () => {
Expand Down