-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 404 페이지, 존재하지 않는 스페이스 페이지 핸들링 (#166)
* feat: yjs connection 연결 거부 시 재연결 시도하지 않고, 관련 정보 에러로 전달 * feat: 에러 페이지 섹션 구현 * feat: yjs connection 상태 추적 * feat: 스페이스 생성 로딩 상태 반영 * feat: space 에러 및 로딩 처리 * feat: not found 페이지 추가 * fix: 현재 동작하지 않는 팔레트 메뉴 버튼 삭제 * feat: space 로딩 스타일 변경 * fix: 잘못된 uid 생성 로직 수정
- Loading branch information
Showing
9 changed files
with
154 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { ReactNode } from "react"; | ||
|
||
import buzzyLogo from "@/assets/error-logo.svg"; | ||
|
||
type ErrorSectionProps = { | ||
description: string; | ||
RestoreActions?: () => ReactNode; | ||
}; | ||
|
||
export default function ErrorSection({ | ||
description, | ||
RestoreActions, | ||
}: ErrorSectionProps) { | ||
return ( | ||
<div className="container mx-auto px-6 h-full text-center"> | ||
<div className="flex flex-col w-full h-full justify-center items-center"> | ||
<img src={buzzyLogo} className="w-36" /> | ||
<div className="mt-8 text-base"> | ||
<p>{description}</p> | ||
</div> | ||
{RestoreActions && ( | ||
<div className="mt-12"> | ||
<RestoreActions /> | ||
</div> | ||
)} | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Link } from "react-router-dom"; | ||
|
||
import { MoveLeftIcon } from "lucide-react"; | ||
|
||
import ErrorSection from "@/components/ErrorSection"; | ||
import { Button } from "@/components/ui/button"; | ||
|
||
export default function NotFoundPage() { | ||
return ( | ||
<ErrorSection | ||
description="찾을 수 없는 페이지예요" | ||
RestoreActions={() => ( | ||
<Button asChild> | ||
<Link to="/"> | ||
<MoveLeftIcon /> | ||
처음으로 돌아가기 | ||
</Link> | ||
</Button> | ||
)} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters