Port settings.

This commit is contained in:
Paul
2021-06-19 22:37:12 +01:00
parent b4bc2262ae
commit 31d8950ea1
48 changed files with 3056 additions and 106 deletions

View File

@@ -1,7 +1,7 @@
import { Form } from "./Form";
import { detect } from "detect-browser";
import { useContext } from "preact/hooks";
import { useHistory } from "react-router-dom";
import { deviceDetect } from "react-device-detect";
import { OperationsContext } from "../../../context/revoltjs/RevoltClient";
export function FormLogin() {
@@ -12,7 +12,7 @@ export function FormLogin() {
<Form
page="login"
callback={async data => {
const browser = deviceDetect();
const browser = detect();
let device_name;
if (browser) {
const { name, os } = browser;