mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-08 01:45:28 +00:00
patch: temporarily fix issue with public invites
This commit is contained in:
@@ -56,7 +56,8 @@ export default observer(
|
|||||||
keyof Props | "children" | "as"
|
keyof Props | "children" | "as"
|
||||||
>,
|
>,
|
||||||
) => {
|
) => {
|
||||||
const client = useApplicationState().client!;
|
// ! TODO: this is temporary code
|
||||||
|
const client = useClient() ?? useApplicationState().client!;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
target,
|
target,
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { ArrowBack } from "@styled-icons/boxicons-regular";
|
import { ArrowBack } from "@styled-icons/boxicons-regular";
|
||||||
import { autorun } from "mobx";
|
|
||||||
import { Redirect, useHistory, useParams } from "react-router-dom";
|
import { Redirect, useHistory, useParams } from "react-router-dom";
|
||||||
import { API } from "revolt.js";
|
import { API } from "revolt.js";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user