mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-25 23:22:06 -05:00
Fix observer on Profile pane.
This commit is contained in:
parent
db43c02e01
commit
3443565265
1 changed files with 3 additions and 2 deletions
|
@ -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>
|
||||||
);
|
);
|
||||||
}
|
});
|
||||||
|
|
Loading…
Reference in a new issue