feat: Add carriers translation on 3 languages

This commit is contained in:
2025-06-13 11:17:18 +03:00
parent f49caf3ec8
commit 2117a6836e
34 changed files with 645 additions and 344 deletions

View File

@ -175,9 +175,10 @@ export const CreateInformationTab = observer(
/>
<Autocomplete
options={ruCities ?? []}
options={ruCities.data ?? []}
value={
ruCities.find((city) => city.id === sight.city_id) ?? null
ruCities.data.find((city) => city.id === sight.city_id) ??
null
}
getOptionLabel={(option) => option.name}
onChange={(_, value) => {

View File

@ -19,14 +19,7 @@ import {
MediaViewer,
DeleteModal,
} from "@widgets";
import {
Trash2,
ImagePlus,
Unlink,
MousePointer,
Plus,
Save,
} from "lucide-react";
import { Trash2, ImagePlus, Unlink, Plus, Save, Search } from "lucide-react";
import { useState, useCallback } from "react";
import { observer } from "mobx-react-lite";
import { toast } from "react-toastify";
@ -160,7 +153,7 @@ export const CreateLeftTab = observer(
variant="contained"
color="primary"
size="small"
startIcon={<MousePointer color="white" size={18} />}
startIcon={<Search color="white" size={18} />}
onClick={() => setIsSelectArticleDialogOpen(true)}
>
Выбрать статью

View File

@ -551,6 +551,7 @@ export const CreateRightTab = observer(
media={
sight[language].right[activeArticleIndex].media[0]
}
fullWidth
/>
</Box>
) : (

View File

@ -18,14 +18,7 @@ import {
MediaViewer,
DeleteModal,
} from "@widgets";
import {
Trash2,
ImagePlus,
Unlink,
Plus,
MousePointer,
Save,
} from "lucide-react";
import { Trash2, ImagePlus, Unlink, Plus, Save, Search } from "lucide-react";
import { useState, useCallback } from "react";
import { observer } from "mobx-react-lite";
import { toast } from "react-toastify";
@ -175,7 +168,7 @@ export const LeftWidgetTab = observer(
variant="contained"
color="primary"
size="small"
startIcon={<MousePointer color="white" size={18} />}
startIcon={<Search color="white" size={18} />}
onClick={() => setIsSelectArticleDialogOpen(true)}
>
Выбрать статью

View File

@ -493,6 +493,7 @@ export const RightWidgetTab = observer(
media={
sight[language].right[activeArticleIndex].media[0]
}
fullWidth
/>
</Box>
) : (

View File

@ -67,7 +67,7 @@ export const SightsTable = observer(() => {
</TableRow>
</TableHead>
<TableBody>
{rows(sights, cities[language])?.map((row) => (
{rows(sights, cities[language]?.data ?? [])?.map((row) => (
<TableRow
key={row?.id}
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}