2026-01-27 13:54:22 +05:30
|
|
|
/**
|
|
|
|
|
* Copyright (c) 2023-present Plane Software, Inc. and contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
* See the LICENSE file for details.
|
|
|
|
|
*/
|
|
|
|
|
|
2025-08-11 18:46:23 +05:30
|
|
|
import { observer } from "mobx-react";
|
2024-05-14 20:54:49 +05:30
|
|
|
import { useTheme } from "next-themes";
|
2025-09-30 15:31:00 +05:30
|
|
|
import { Button } from "@plane/propel/button";
|
2024-05-14 20:54:49 +05:30
|
|
|
// assets
|
2025-08-11 18:46:23 +05:30
|
|
|
import { AuthHeader } from "@/app/(all)/(home)/auth-header";
|
2025-11-06 00:09:35 -08:00
|
|
|
import InstanceFailureDarkImage from "@/app/assets/instance/instance-failure-dark.svg?url";
|
|
|
|
|
import InstanceFailureImage from "@/app/assets/instance/instance-failure.svg?url";
|
2024-05-14 20:54:49 +05:30
|
|
|
|
2025-11-20 19:09:40 +07:00
|
|
|
export const InstanceFailureView = observer(function InstanceFailureView() {
|
2024-05-14 20:54:49 +05:30
|
|
|
const { resolvedTheme } = useTheme();
|
|
|
|
|
|
|
|
|
|
const instanceImage = resolvedTheme === "dark" ? InstanceFailureDarkImage : InstanceFailureImage;
|
|
|
|
|
|
|
|
|
|
const handleRetry = () => {
|
|
|
|
|
window.location.reload();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return (
|
2025-08-11 18:46:23 +05:30
|
|
|
<>
|
|
|
|
|
<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">
|
2025-11-13 18:33:18 +05:30
|
|
|
<img src={instanceImage} alt="Instance failure illustration" />
|
2025-12-12 20:50:14 +05:30
|
|
|
<h3 className="font-medium text-20 text-on-color text-center">Unable to fetch instance details.</h3>
|
|
|
|
|
<p className="font-medium text-14 text-center">
|
2025-08-11 18:46:23 +05:30
|
|
|
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">
|
2025-12-12 20:50:14 +05:30
|
|
|
<Button size="lg" onClick={handleRetry}>
|
2025-08-11 18:46:23 +05:30
|
|
|
Retry
|
|
|
|
|
</Button>
|
|
|
|
|
</div>
|
2024-05-14 20:54:49 +05:30
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-08-11 18:46:23 +05:30
|
|
|
</>
|
2024-05-14 20:54:49 +05:30
|
|
|
);
|
2025-08-11 18:46:23 +05:30
|
|
|
});
|