feat: Select article list in sight

This commit is contained in:
2025-05-31 06:35:05 +03:00
parent 5ef61bcef4
commit 2e6917406e
21 changed files with 899 additions and 498 deletions

View File

@ -1,5 +1,5 @@
import { API_URL, authInstance } from "@shared";
import { makeAutoObservable } from "mobx";
import { makeAutoObservable, runInAction } from "mobx";
class DevicesStore {
devices: string[] = [];
@ -12,7 +12,9 @@ class DevicesStore {
getDevices = async () => {
const response = await authInstance.get(`${API_URL}/devices/connected`);
this.devices = response.data;
runInAction(() => {
this.devices = response.data;
});
};
setSelectedDevice = (uuid: string) => {