feat: Worked map prototype

This commit is contained in:
2025-06-08 10:59:26 +03:00
parent b09c1b3214
commit 02a1d2ea74
3 changed files with 370 additions and 468 deletions

File diff suppressed because it is too large Load Diff

View File

@ -106,7 +106,9 @@ export const UploadMediaDialog = observer(
try {
const media = await uploadMedia(
mediaFilename,
mediaType,
hardcodeType
? (MEDIA_TYPE_VALUES[hardcodeType] as number)
: mediaType,
mediaFile,
mediaName
);

View File

@ -40,6 +40,16 @@ class CityStore {
makeAutoObservable(this);
}
ruCities: City[] = [];
getRuCities = async () => {
const response = await languageInstance("ru").get(`/city`);
runInAction(() => {
this.ruCities = response.data;
});
};
getCities = async (language: keyof CashedCities) => {
if (this.cities[language] && this.cities[language].length > 0) {
return;