Repair path svg

This commit is contained in:
2025-10-23 14:27:23 +07:00
parent 8c9ef41704
commit 5a1bd4e16f
8 changed files with 16 additions and 8 deletions

View File

@@ -3,10 +3,11 @@ import { Card, Typography, Flex } from 'antd';
import { setValSvg } from '../../components/Global/MqttConnection';
import SvgTemplate from './SvgTemplate';
import SvgViewer from './SvgViewer';
import filePathSvg from '../../assets/svg/air_dryer_A_rev.svg';
const { Text } = Typography;
const filePathSvg = '/src/assets/svg/air_dryer_A_rev.svg';
// const filePathSvg = '/src/assets/svg/air_dryer_A_rev.svg';
const topicMqtt = 'PIU_GGCP/Devices/PB';
const SvgAirDryerA = () => {

View File

@@ -3,10 +3,11 @@ import { Card, Typography, Flex } from 'antd';
import { setValSvg } from '../../components/Global/MqttConnection';
import SvgTemplate from './SvgTemplate';
import SvgViewer from './SvgViewer';
import filePathSvg from '../../assets/svg/air_dryer_B_rev.svg';
const { Text } = Typography;
const filePathSvg = '/src/assets/svg/air_dryer_B_rev.svg';
// const filePathSvg = '/src/assets/svg/air_dryer_B_rev.svg';
const topicMqtt = 'PIU_GGCP/Devices/PB';
const SvgAirDryerB = () => {

View File

@@ -3,10 +3,11 @@ import { Card, Typography, Flex } from 'antd';
import { setValSvg } from '../../components/Global/MqttConnection';
import SvgTemplate from './SvgTemplate';
import SvgViewer from './SvgViewer';
import filePathSvg from '../../assets/svg/air_dryer_C_rev.svg';
const { Text } = Typography;
const filePathSvg = '/src/assets/svg/air_dryer_C_rev.svg';
// const filePathSvg = '/src/assets/svg/air_dryer_C_rev.svg';
const topicMqtt = 'PIU_GGCP/Devices/PB';
const SvgAirDryerC = () => {

View File

@@ -3,10 +3,11 @@ import { Card, Typography, Flex } from 'antd';
import { setValSvg } from '../../components/Global/MqttConnection';
import SvgTemplate from './SvgTemplate';
import SvgViewer from './SvgViewer';
import filePathSvg from '../../assets/svg/test-new.svg';
const { Text } = Typography;
const filePathSvg = '/src/assets/svg/test-new.svg';
// const filePathSvg = '/src/assets/svg/test-new.svg';
const topicMqtt = 'PIU_GGCP/Devices/PB';
const SvgCompressorA = () => {

View File

@@ -3,10 +3,11 @@ import { Card, Typography, Flex } from 'antd';
import { setValSvg } from '../../components/Global/MqttConnection';
import SvgTemplate from './SvgTemplate';
import SvgViewer from './SvgViewer';
import filePathSvg from '../../assets/svg/test-new.svg';
const { Text } = Typography;
const filePathSvg = '/src/assets/svg/test-new.svg';
// const filePathSvg = '/src/assets/svg/test-new.svg';
const topicMqtt = 'PIU_GGCP/Devices/PB';
const SvgCompressorB = () => {

View File

@@ -3,10 +3,11 @@ import { Card, Typography, Flex } from 'antd';
import { setValSvg } from '../../components/Global/MqttConnection';
import SvgTemplate from './SvgTemplate';
import SvgViewer from './SvgViewer';
import filePathSvg from '../../assets/svg/test-new.svg';
const { Text } = Typography;
const filePathSvg = '/src/assets/svg/test-new.svg';
// const filePathSvg = '/src/assets/svg/test-new.svg';
const topicMqtt = 'PIU_GGCP/Devices/PB';
const SvgCompressorC = () => {

View File

@@ -3,10 +3,11 @@ import { Card, Typography, Flex } from 'antd';
import { setValSvg } from '../../components/Global/MqttConnection';
import SvgTemplate from './SvgTemplate';
import SvgViewer from './SvgViewer';
import filePathSvg from '../../assets/svg/test-new.svg';
const { Text } = Typography;
const filePathSvg = '/src/assets/svg/test-new.svg';
// const filePathSvg = '/src/assets/svg/test-new.svg';
const topicMqtt = 'PIU_GGCP/Devices/PB';
const SvgOverview = () => {

View File

@@ -3,10 +3,11 @@ import { Card, Typography, Flex } from 'antd';
// import { ReactSVG } from 'react-svg';
import { setValSvg } from '../../components/Global/MqttConnection';
import { ReactSVG } from 'react-svg';
import filePathSvg from '../../assets/svg/test-new.svg';
const { Text } = Typography;
const filePathSvg = '/src/assets/svg/test-new.svg';
// const filePathSvg = '/src/assets/svg/test-new.svg';
const topicMqtt = 'PIU_GGCP/Devices/PB';
const SvgTest = () => {