mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
Fix observer on Profile pane.
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import { observer } from "mobx-react-lite";
|
||||||
import { Profile as ProfileI } from "revolt-api/types/Users";
|
import { Profile as ProfileI } from "revolt-api/types/Users";
|
||||||
|
|
||||||
import styles from "./Panes.module.scss";
|
import styles from "./Panes.module.scss";
|
||||||
@@ -20,7 +21,7 @@ import AutoComplete, {
|
|||||||
} from "../../../components/common/AutoComplete";
|
} from "../../../components/common/AutoComplete";
|
||||||
import Button from "../../../components/ui/Button";
|
import Button from "../../../components/ui/Button";
|
||||||
|
|
||||||
export function Profile() {
|
export const Profile = observer(() => {
|
||||||
const status = useContext(StatusContext);
|
const status = useContext(StatusContext);
|
||||||
const translate = useTranslation();
|
const translate = useTranslation();
|
||||||
const client = useClient();
|
const client = useClient();
|
||||||
@@ -169,4 +170,4 @@ export function Profile() {
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user