* chore: update next images with html default images * chore: sync related changes * Update apps/admin/core/components/instance/failure.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update apps/space/app/not-found.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update apps/space/core/components/issues/issue-layouts/error.tsx Co-authored-by: Copilot <[email protected]> * Update apps/space/core/components/ui/not-found.tsx Co-authored-by: Copilot <[email protected]> * chore: replace classname styles in space * fix: copoilot suggestions * fix: copilot suggestions * chore: format files --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Copilot <[email protected]>
41 lines
1.5 KiB
TypeScript
41 lines
1.5 KiB
TypeScript
"use client";
|
|
import { observer } from "mobx-react";
|
|
import { useTheme } from "next-themes";
|
|
import { Button } from "@plane/propel/button";
|
|
// assets
|
|
import { AuthHeader } from "@/app/(all)/(home)/auth-header";
|
|
import InstanceFailureDarkImage from "@/app/assets/instance/instance-failure-dark.svg?url";
|
|
import InstanceFailureImage from "@/app/assets/instance/instance-failure.svg?url";
|
|
|
|
export const InstanceFailureView: React.FC = observer(() => {
|
|
const { resolvedTheme } = useTheme();
|
|
|
|
const instanceImage = resolvedTheme === "dark" ? InstanceFailureDarkImage : InstanceFailureImage;
|
|
|
|
const handleRetry = () => {
|
|
window.location.reload();
|
|
};
|
|
|
|
return (
|
|
<>
|
|
<AuthHeader />
|
|
<div className="flex flex-col justify-center items-center flex-grow w-full py-6 mt-10">
|
|
<div className="relative flex flex-col gap-6 max-w-[22.5rem] w-full">
|
|
<div className="relative flex flex-col justify-center items-center space-y-4">
|
|
<img src={instanceImage} alt="Instance failure illustration" />
|
|
<h3 className="font-medium text-2xl text-white text-center">Unable to fetch instance details.</h3>
|
|
<p className="font-medium text-base text-center">
|
|
We were unable to fetch the details of the instance. Fret not, it might just be a connectivity issue.
|
|
</p>
|
|
</div>
|
|
<div className="flex justify-center">
|
|
<Button size="md" onClick={handleRetry}>
|
|
Retry
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</>
|
|
);
|
|
});
|