|
@@ -1,6 +1,6 @@
|
|
|
import { useState, useEffect } from 'react';
|
|
import { useState, useEffect } from 'react';
|
|
|
import { useTranslation } from 'react-i18next';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
-import { X, Copy, Check, Signal, Cable } from 'lucide-react';
|
|
|
|
|
|
|
+import { X, Copy, Check, Signal } from 'lucide-react';
|
|
|
import { Card, CardContent } from './Card';
|
|
import { Card, CardContent } from './Card';
|
|
|
import { formatDateOnly } from '../utils/date';
|
|
import { formatDateOnly } from '../utils/date';
|
|
|
import { getPrinterImage, getWifiStrength } from '../utils/printer';
|
|
import { getPrinterImage, getWifiStrength } from '../utils/printer';
|
|
@@ -109,18 +109,8 @@ export function PrinterInfoModal({ printer, status, totalPrintHours, onClose }:
|
|
|
),
|
|
),
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- // Network connection
|
|
|
|
|
- if (status?.wired_network) {
|
|
|
|
|
- rows.push({
|
|
|
|
|
- label: t('printers.networkLabel', 'Network'),
|
|
|
|
|
- value: (
|
|
|
|
|
- <span className="flex items-center gap-2">
|
|
|
|
|
- <Cable className="w-4 h-4 text-bambu-green" />
|
|
|
|
|
- <span className="text-bambu-green">{t('printers.connection.ethernet', 'Ethernet')}</span>
|
|
|
|
|
- </span>
|
|
|
|
|
- ),
|
|
|
|
|
- });
|
|
|
|
|
- } else if (status?.wifi_signal != null) {
|
|
|
|
|
|
|
+ // WiFi signal
|
|
|
|
|
+ if (status?.wifi_signal != null) {
|
|
|
const wifi = getWifiStrength(status.wifi_signal);
|
|
const wifi = getWifiStrength(status.wifi_signal);
|
|
|
rows.push({
|
|
rows.push({
|
|
|
label: t('printers.wifiSignalLabel'),
|
|
label: t('printers.wifiSignalLabel'),
|