feat: Add translation on 3 languages for sight page

This commit is contained in:
2025-06-01 00:34:59 +03:00
parent 0d9bbb140f
commit 87386c6a73
22 changed files with 768 additions and 732 deletions

View File

@@ -5,7 +5,7 @@ import TableContainer from "@mui/material/TableContainer";
import TableHead from "@mui/material/TableHead";
import TableRow from "@mui/material/TableRow";
import Paper from "@mui/material/Paper";
import { Check, RotateCcw, Send, X } from "lucide-react";
import { Check, RotateCcw, X } from "lucide-react";
import {
authInstance,
devicesStore,
@@ -49,7 +49,7 @@ function createData(
}
// Keep the rows function as you provided it, without additional filters
const rows = (devices: any[], vehicles: any[]) => {
const rows = (vehicles: any[]) => {
return vehicles.map((vehicle) => {
return createData(
vehicle?.vehicle?.tail_number ?? "1243000", // Using tail_number as UUID, as in your original code
@@ -72,11 +72,11 @@ export const DevicesTable = observer(() => {
toggleSendSnapshotModal,
} = devicesStore;
const { snapshots, getSnapshots } = snapshotStore;
const { vehicles, getVehicles } = vehicleStore;
const { getVehicles } = vehicleStore;
const [selectedDevices, setSelectedDevices] = useState<string[]>([]);
// Get the current list of rows displayed in the table
const currentRows = rows(devices, vehicles);
const currentRows = rows(devices);
useEffect(() => {
const fetchData = async () => {