fix: Refactor imports in OfflineMode, Settings, and API services
Some checks failed
Frontend (React) / test (18) (push) Failing after 1m46s
Frontend (React) / test (20) (push) Failing after 1m37s
Frontend (React) / lighthouse (push) Has been skipped
Frontend (React) / build (push) Has been skipped
Docker Build and Push / build-and-push (push) Failing after 44s
Integration Tests / integration-tests (push) Failing after 2m39s
LabFusion CI/CD Pipeline / service-adapters (push) Successful in 1m7s
Integration Tests / performance-tests (push) Has been skipped
LabFusion CI/CD Pipeline / frontend (push) Successful in 8m37s
LabFusion CI/CD Pipeline / integration-tests (push) Has been skipped
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 1m30s
LabFusion CI/CD Pipeline / api-docs (push) Successful in 1m46s
Frontend (React) / test (16) (push) Failing after 1m38s

### Summary of Changes
- Removed unused imports from `OfflineMode.js` and `Settings.js` to streamline the code.
- Cleaned up the import statements in `api.js` by eliminating the unused `formatServiceData` and `formatEventData` functions.

### Expected Results
- Improved code clarity and maintainability by adhering to clean code principles and reducing unnecessary dependencies.
This commit is contained in:
GSRN
2025-09-16 09:04:19 +02:00
parent 1f98e03c02
commit d8dcca386e
3 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import { Alert, Button, Space } from 'antd'; import { Alert, Button, Space } from 'antd';
import { WifiOutlined, ReloadOutlined } from '@ant-design/icons'; import { ReloadOutlined } from '@ant-design/icons';
const OfflineMode = ({ onRetry }) => { const OfflineMode = ({ onRetry }) => {
return ( return (

View File

@@ -1,7 +1,7 @@
import React, { useState } from 'react'; import React, { useState } from 'react';
import { Card, Form, Input, Button, Switch, Select, Divider, Typography, message } from 'antd'; import { Card, Form, Input, Button, Switch, Select, Typography, message } from 'antd';
const { Title, Text } = Typography; const { Title } = Typography;
const { Option } = Select; const { Option } = Select;
const Settings = () => { const Settings = () => {

View File

@@ -1,6 +1,6 @@
import axios from 'axios'; import axios from 'axios';
import { API_CONFIG, SERVICE_URLS, FALLBACK_DATA } from '../constants'; import { API_CONFIG, SERVICE_URLS, FALLBACK_DATA } from '../constants';
import { handleRequestError, formatServiceData, formatEventData } from '../utils/errorHandling'; import { handleRequestError } from '../utils/errorHandling';
// Create axios instances with timeout and error handling // Create axios instances with timeout and error handling
const apiClient = axios.create({ const apiClient = axios.create({