fix: Fix bugs

This commit is contained in:
2025-06-07 19:40:54 +03:00
parent 0fe4683683
commit e37f9e14bc
11 changed files with 99 additions and 61 deletions

View File

@ -32,7 +32,7 @@ import { toast } from "react-toastify";
export const InformationTab = observer(
({ value, index }: { value: number; index: number }) => {
const { cities } = cityStore;
const { ruCities } = cityStore;
const [mediaId, setMediaId] = useState<string>("");
const [isPreviewMediaOpen, setIsPreviewMediaOpen] = useState(false);
@ -113,7 +113,11 @@ export const InformationTab = observer(
paddingBottom: "70px" /* Space for save button */,
}}
>
<BackButton />
<div className="flex gap-10 items-center mb-5 max-w-[80%]">
<BackButton />
<h1 className="text-3xl break-words">{sight[language].name}</h1>
</div>
<LanguageSwitcher />
<Box
sx={{
@ -159,9 +163,9 @@ export const InformationTab = observer(
/>
<Autocomplete
options={cities ?? []}
options={ruCities ?? []}
value={
cities.find((city) => city.id === sight.common.city_id) ??
ruCities.find((city) => city.id === sight.common.city_id) ??
null
}
getOptionLabel={(option) => option.name}