feat: add scrollable menu with fade hints and home button transition

This commit is contained in:
2026-05-20 12:48:00 +03:00
parent 7e539f550b
commit 1bb3f43979
21 changed files with 211 additions and 90 deletions

View File

@@ -25,6 +25,7 @@ import {
SelectMediaDialog,
UploadMediaDialog,
PreviewMediaDialog,
selectedCityStore,
} from "@shared";
import { useState, useEffect } from "react";
import { ImageUploadCard } from "@widgets";
@@ -79,6 +80,11 @@ export const UserCreatePage = observer(() => {
createUserData.roles ?? ["articles_ro", "articles_rw", "media_ro", "media_rw"]
);
useEffect(() => {
selectedCityStore.setIsLocked(true);
return () => selectedCityStore.setIsLocked(false);
}, []);
useEffect(() => {
mediaStore.getMedia();
}, []);

View File

@@ -30,6 +30,7 @@ import {
authStore,
cityStore,
MultiSelect,
selectedCityStore,
type User,
type UserCity,
} from "@shared";
@@ -92,6 +93,11 @@ export const UserEditPage = observer(() => {
"thumbnail" | "watermark_lu" | "watermark_rd" | "image" | null
>(null);
useEffect(() => {
selectedCityStore.setIsLocked(true);
return () => selectedCityStore.setIsLocked(false);
}, []);
useEffect(() => {
languageStore.setLanguage("ru");
}, []);