-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Kevin-Umali/feature/TL-DYS-46
[TL-DYS-46] [TL-DYS-45]
- Loading branch information
Showing
39 changed files
with
765 additions
and
358 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
"use client"; | ||
|
||
import { useRouter } from "next/navigation"; | ||
|
||
import { Button } from "@/components/ui/button"; | ||
import { Label } from "@/components/ui/label"; | ||
|
||
interface ErrorProps { | ||
error: Error & { digest?: string }; | ||
reset: () => void; | ||
} | ||
|
||
const ErrorComponent: React.FC<ErrorProps> = ({ error, reset }) => { | ||
const router = useRouter(); | ||
|
||
return ( | ||
<div className="flex min-h-screen items-center justify-center py-5 sm:py-10"> | ||
<div className="p-6 text-center"> | ||
<Label className="mb-2 block text-2xl font-bold">Oops, something went wrong!</Label> | ||
<Label className="text-md my-4 block">{error.message}</Label> | ||
<div className="mt-4 flex flex-col space-y-2"> | ||
<Button onClick={() => router.push("/")} className="w-full border px-4 py-2"> | ||
Go Back to Home | ||
</Button> | ||
<Button onClick={reset} className="w-full border px-4 py-2"> | ||
Try Again | ||
</Button> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ErrorComponent; |
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,5 @@ | ||
import PageLoader from "@/components/page-loader"; | ||
|
||
export default function Loading() { | ||
return <PageLoader loaderMessage="Loading faqs" />; | ||
} |
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,5 @@ | ||
import PageLoader from "@/components/page-loader"; | ||
|
||
export default function Loading() { | ||
return <PageLoader loaderMessage="Loading guide details" />; | ||
} |
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,5 @@ | ||
import PageLoader from "@/components/page-loader"; | ||
|
||
export default function Loading() { | ||
return <PageLoader loaderMessage="Loading guides" />; | ||
} |
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,5 @@ | ||
import PageLoader from "@/components/page-loader"; | ||
|
||
export default function Loading() { | ||
return <PageLoader loaderMessage="Checking Project Detail" />; | ||
} |
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,5 @@ | ||
import PageLoader from "@/components/page-loader"; | ||
|
||
export default function Loading() { | ||
return <PageLoader loaderMessage="Checking Project Detail" />; | ||
} |
Oops, something went wrong.