feat: add warning on self-hosted instances (#645)

* feat: add warning on self-hosted instances

* update text
This commit is contained in:
Jan 2022-05-24 13:53:06 +02:00 committed by GitHub
parent a35e68799a
commit 8efe3ecbc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,7 @@ import { takeError } from "../../../context/revoltjs/util";
import Overline from "../../../components/ui/Overline";
import Preloader from "../../../components/ui/Preloader";
import WaveSVG from "../../settings/assets/wave.svg";
import { Tip } from "@revoltchat/ui";
import FormField from "../FormField";
import { CaptchaBlock, CaptchaProps } from "./CaptchaBlock";
@ -249,6 +250,24 @@ export const Form = observer(({ page, callback }: Props) => {
<Text id="login.reset" />
</Link>
</span>
{import.meta.env.VITE_API_URL &&
import.meta.env.VITE_API_URL !=
"https://api.revolt.chat" && (
<>
<br />
<Tip palette="primary">
<span>
<Text id="login.unofficial_instance" />{" "}
<a
href="https://developers.revolt.chat/faq/instances#what-is-a-third-party-instance"
style={{ color: "var(--accent)" }}
target="_blank">
<Text id="general.learn_more" />
</a>
</span>
</Tip>
</>
)}
</>
)}
{(page === "reset" ||