mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-21 22:50:59 -05:00
feat: add warning on self-hosted instances (#645)
* feat: add warning on self-hosted instances * update text
This commit is contained in:
parent
a35e68799a
commit
8efe3ecbc0
1 changed files with 19 additions and 0 deletions
|
@ -15,6 +15,7 @@ import { takeError } from "../../../context/revoltjs/util";
|
||||||
import Overline from "../../../components/ui/Overline";
|
import Overline from "../../../components/ui/Overline";
|
||||||
import Preloader from "../../../components/ui/Preloader";
|
import Preloader from "../../../components/ui/Preloader";
|
||||||
import WaveSVG from "../../settings/assets/wave.svg";
|
import WaveSVG from "../../settings/assets/wave.svg";
|
||||||
|
import { Tip } from "@revoltchat/ui";
|
||||||
|
|
||||||
import FormField from "../FormField";
|
import FormField from "../FormField";
|
||||||
import { CaptchaBlock, CaptchaProps } from "./CaptchaBlock";
|
import { CaptchaBlock, CaptchaProps } from "./CaptchaBlock";
|
||||||
|
@ -249,6 +250,24 @@ export const Form = observer(({ page, callback }: Props) => {
|
||||||
<Text id="login.reset" />
|
<Text id="login.reset" />
|
||||||
</Link>
|
</Link>
|
||||||
</span>
|
</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" ||
|
{(page === "reset" ||
|
||||||
|
|
Loading…
Reference in a new issue