Skip to content

Commit 18161ab

Browse files
committed
로그인 다이얼로그가 예상치 못한 동작과 함께 열리는 문제 수정
DialogContent 는 현재 공용 Dialog 내에서 렌더링 되는 것으로 최근 수정되었으나, 해당 수정사항 반영이 로그인 다이얼로그에서 누락되어 수정함(사용처에서 DialogContent 제거해야 함). fix #166
1 parent 723c056 commit 18161ab

1 file changed

Lines changed: 38 additions & 40 deletions

File tree

src/frontend/src/core/auth/login-dialog.tsx

Lines changed: 38 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -9,46 +9,44 @@ import { Dialog, DialogProps } from "~/core/dialog";
99
export const LoginDialog = (dialogProps: DialogProps) => {
1010
return (
1111
<Dialog {...dialogProps}>
12-
<Dialog.Content>
13-
<Dialog.Header>로그인</Dialog.Header>
14-
<Dialog.Body>
15-
<Flex direction="column" gap={3}>
16-
<Button
17-
_hover={{ bg: "gray.50" }}
18-
bg="white"
19-
borderColor="gray.200"
20-
borderWidth={1}
21-
color="gray.700"
22-
onClick={() => {
23-
window.location.href = "/auth/google";
24-
}}
25-
>
26-
<FcGoogle /> Google로 계속하기
27-
</Button>
28-
<Button
29-
_hover={{ bg: "#4752C4" }}
30-
bg="#5865F2"
31-
color="white"
32-
onClick={() => {
33-
window.location.href = import.meta.env.VITE_DISCORD_LOGIN_URL;
34-
}}
35-
>
36-
<FaDiscord /> Discord로 계속하기
37-
</Button>
38-
<Button
39-
_hover={{ bg: "#FDD835" }}
40-
bg="#FEE500"
41-
color="rgba(0,0,0,0.85)"
42-
onClick={() => {
43-
window.location.href = "/auth/kakao";
44-
}}
45-
>
46-
<RiKakaoTalkFill /> 카카오로 계속하기
47-
</Button>
48-
</Flex>
49-
</Dialog.Body>
50-
<Dialog.Footer />
51-
</Dialog.Content>
12+
<Dialog.Header>로그인</Dialog.Header>
13+
<Dialog.Body>
14+
<Flex direction="column" gap={3}>
15+
<Button
16+
_hover={{ bg: "gray.50" }}
17+
bg="white"
18+
borderColor="gray.200"
19+
borderWidth={1}
20+
color="gray.700"
21+
onClick={() => {
22+
window.location.href = "/auth/google";
23+
}}
24+
>
25+
<FcGoogle /> Google로 계속하기
26+
</Button>
27+
<Button
28+
_hover={{ bg: "#4752C4" }}
29+
bg="#5865F2"
30+
color="white"
31+
onClick={() => {
32+
window.location.href = import.meta.env.VITE_DISCORD_LOGIN_URL;
33+
}}
34+
>
35+
<FaDiscord /> Discord로 계속하기
36+
</Button>
37+
<Button
38+
_hover={{ bg: "#FDD835" }}
39+
bg="#FEE500"
40+
color="rgba(0,0,0,0.85)"
41+
onClick={() => {
42+
window.location.href = "/auth/kakao";
43+
}}
44+
>
45+
<RiKakaoTalkFill /> 카카오로 계속하기
46+
</Button>
47+
</Flex>
48+
</Dialog.Body>
49+
<Dialog.Footer />
5250
</Dialog>
5351
);
5452
};

0 commit comments

Comments
 (0)