mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-09 10:15:26 +00:00
Hide client behind context.
Use idb for saving data. Allow logins.
This commit is contained in:
@@ -6,7 +6,7 @@ import { APP_VERSION } from "../../version";
|
||||
import { LIBRARY_VERSION } from "revolt.js";
|
||||
import { Route, Switch } from "react-router-dom";
|
||||
import { ThemeContext } from "../../context/Theme";
|
||||
import { RevoltClient } from "../../context/revoltjs/RevoltClient";
|
||||
import { AppContext } from "../../context/revoltjs/RevoltClient";
|
||||
|
||||
import background from "./background.jpg";
|
||||
|
||||
@@ -17,6 +17,7 @@ import { FormReset, FormSendReset } from "./forms/FormReset";
|
||||
|
||||
export const Login = () => {
|
||||
const theme = useContext(ThemeContext);
|
||||
const { client } = useContext(AppContext);
|
||||
|
||||
return (
|
||||
<div className={styles.login}>
|
||||
@@ -27,7 +28,7 @@ export const Login = () => {
|
||||
<div className={styles.attribution}>
|
||||
<span>
|
||||
API:{" "}
|
||||
<code>{RevoltClient.configuration?.revolt ?? "???"}</code>{" "}
|
||||
<code>{client.configuration?.revolt ?? "???"}</code>{" "}
|
||||
· revolt.js: <code>{LIBRARY_VERSION}</code>{" "}
|
||||
· App: <code>{APP_VERSION}</code>
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user