Skip to content
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
4 changes: 3 additions & 1 deletion client/src/pages/CompanySignupPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useEffect, useState } from "react";
import { Link, Navigate } from "react-router-dom";
import { isInstalledApp } from "../lib/platform";
import { useAuth } from "../auth";
import { api } from "../api";
import BrandLockup from "../components/BrandLockup";
Expand Down Expand Up @@ -41,7 +42,8 @@ export default function CompanySignupPage() {

if (user) return <Navigate to="/" replace />;
// ๋ชจ๋ฐ”์ผ/ํƒœ๋ธ”๋ฆฟ์€ ๊ทธ๋ƒฅ ์กฐ์šฉํžˆ ๋กœ๊ทธ์ธ์œผ๋กœ ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ(์•ˆ๋‚ด ํ™”๋ฉด ์—†์ด).
if (isMobile) return <Navigate to="/login" replace />;
// ์„ค์น˜ํ˜• ์•ฑ(macOS ๋ฐ์Šคํฌํ†ฑยทiOS/Android ๋„ค์ดํ‹ฐ๋ธŒ)๋„ ์ „๋ฉด ์ฐจ๋‹จ โ€” ํšŒ์‚ฌ ๋“ฑ๋ก์€ ์›น ์ „์šฉ.
if (isMobile || isInstalledApp()) return <Navigate to="/login" replace />;

async function submit(e: React.FormEvent) {
e.preventDefault();
Expand Down
4 changes: 3 additions & 1 deletion client/src/pages/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ export default function LoginPage() {
</div>

{/* ์ƒˆ ํšŒ์‚ฌ ์…€ํ”„ ๊ฐ€์ž… โ€” ๋ฉ€ํ‹ฐํ…Œ๋„ŒํŠธ ์ง„์ž…์  */}
{/* ํšŒ์‚ฌ ๋“ฑ๋ก ์ง„์ž…์  โ€” ๋ชจ๋ฐ”์ผ์—์„œ๋Š” ์ˆจ๊น€(๊ธด ํšŒ์‚ฌ ์ •๋ณด ํผ์€ ๋ฐ์Šคํฌํƒ‘์—์„œ๋งŒ ์ž‘์„ฑ). */}
{/* ํšŒ์‚ฌ ๋“ฑ๋ก ์ง„์ž…์  โ€” ๋ชจ๋ฐ”์ผ ํญ์—์„  ์ˆจ๊น€(๊ธด ํผ), ์„ค์น˜ํ˜• ์•ฑ(macOSยทiOS)์—์„  ์›น ์ „์šฉ์ด๋ผ ์ˆจ๊น€. */}
{!isInstalledApp() && (
<div className="mt-4 text-center text-[12.5px] hidden md:block">
<span className="text-ink-400">ํšŒ์‚ฌ๋ฅผ ์ƒˆ๋กœ ์‹œ์ž‘ํ•˜์‹œ๋‚˜์š”? </span>
<Link
Expand All @@ -206,6 +207,7 @@ export default function LoginPage() {
ํšŒ์‚ฌ ๋“ฑ๋ก ์‹ ์ฒญ
</Link>
</div>
)}

{/* ์•ฑ ๋‹ค์šด๋กœ๋“œ โ€” ์„ค์น˜ํ˜• ์•ฑ(๋ฐ์Šคํฌํ†ฑยท๋ชจ๋ฐ”์ผ ๋„ค์ดํ‹ฐ๋ธŒ) ์•ˆ์—์„œ๋Š” ์ˆจ๊น€ */}
{!isInstalledApp() && (
Expand Down
5 changes: 4 additions & 1 deletion client/src/pages/SignupPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useState } from "react";
import { isInstalledApp } from "../lib/platform";
import { Link, Navigate, useNavigate } from "react-router-dom";
import { useAuth } from "../auth";
import BrandLockup from "../components/BrandLockup";
Expand Down Expand Up @@ -130,7 +131,8 @@ export default function SignupPage() {
</Link>
</div>

{/* ์ดˆ๋Œ€ํ‚ค๊ฐ€ ์—†๋Š” ์‹ ๊ทœ ํšŒ์‚ฌ๋Š” ํšŒ์‚ฌ ๋“ฑ๋ก ์‹ ์ฒญ์œผ๋กœ ์•ˆ๋‚ด. ๋ชจ๋ฐ”์ผ์—์„œ๋Š” ์ˆจ๊น€. */}
{/* ์ดˆ๋Œ€ํ‚ค๊ฐ€ ์—†๋Š” ์‹ ๊ทœ ํšŒ์‚ฌ๋Š” ํšŒ์‚ฌ ๋“ฑ๋ก ์‹ ์ฒญ์œผ๋กœ ์•ˆ๋‚ด. ๋ชจ๋ฐ”์ผ ํญยท์„ค์น˜ํ˜• ์•ฑ์—์„  ์ˆจ๊น€(์›น ์ „์šฉ). */}
{!isInstalledApp() && (
<div className="mt-4 text-center text-[12.5px] hidden md:block">
<span className="text-ink-400">์ดˆ๋Œ€ํ‚ค๊ฐ€ ์—†๋Š” ์ƒˆ ํšŒ์‚ฌ์ธ๊ฐ€์š”? </span>
<Link
Expand All @@ -141,6 +143,7 @@ export default function SignupPage() {
ํšŒ์‚ฌ ๋“ฑ๋ก ์‹ ์ฒญ
</Link>
</div>
)}
</div>
</main>
</div>
Expand Down
Loading