From fe6a81c84413ff6120e8e24b0a8553e63fcfe4a7 Mon Sep 17 00:00:00 2001
From: hamed-musallam <35760236+hamed-musallam@users.noreply.github.com>
Date: Thu, 26 Oct 2023 16:16:47 +0200
Subject: [PATCH] fix: resolve the conflict of the analysis modal correctly
(#2727)
* feat: resolve the conflict of the analysis spectra multiple analysis modal correctly
the issue introduced by https://github.com/cheminfo/nmrium/commit/8cb92dfec97bbfebb36930a9a8b079226c8504c5
close #2726
* refactor: spectra analysis components paths
---
src/component/panels/Panels.tsx | 2 +-
.../AlignSpectra.tsx | 0
.../AnalysisChart.tsx | 0
.../MultipleSpectraAnalysisPanel.tsx | 16 +++++++++++-----
.../MultipleSpectraAnalysisTable.tsx | 0
.../base/AnalysisCell.tsx | 0
.../base/AnalysisColumnHeader.tsx | 0
.../preferences/AnalysisTablePreferences.tsx | 0
.../preferences/LegendsPreferences.tsx | 0
.../preferences/MultipleAnalysisCodeEditor.tsx | 0
.../preferences/index.tsx | 0
src/data/data1d/Spectrum1D/initiateDatum1D.ts | 6 +++---
src/data/data2d/Spectrum2D/initiateDatum2D.ts | 3 ++-
13 files changed, 17 insertions(+), 10 deletions(-)
rename src/component/panels/{MultipleSpectraAnalysisPanel => multipleAnalysisPanel}/AlignSpectra.tsx (100%)
rename src/component/panels/{MultipleSpectraAnalysisPanel => multipleAnalysisPanel}/AnalysisChart.tsx (100%)
rename src/component/panels/{MultipleSpectraAnalysisPanel => multipleAnalysisPanel}/MultipleSpectraAnalysisPanel.tsx (93%)
rename src/component/panels/{MultipleSpectraAnalysisPanel => multipleAnalysisPanel}/MultipleSpectraAnalysisTable.tsx (100%)
rename src/component/panels/{MultipleSpectraAnalysisPanel => multipleAnalysisPanel}/base/AnalysisCell.tsx (100%)
rename src/component/panels/{MultipleSpectraAnalysisPanel => multipleAnalysisPanel}/base/AnalysisColumnHeader.tsx (100%)
rename src/component/panels/{MultipleSpectraAnalysisPanel => multipleAnalysisPanel}/preferences/AnalysisTablePreferences.tsx (100%)
rename src/component/panels/{MultipleSpectraAnalysisPanel => multipleAnalysisPanel}/preferences/LegendsPreferences.tsx (100%)
rename src/component/panels/{MultipleSpectraAnalysisPanel => multipleAnalysisPanel}/preferences/MultipleAnalysisCodeEditor.tsx (100%)
rename src/component/panels/{MultipleSpectraAnalysisPanel => multipleAnalysisPanel}/preferences/index.tsx (100%)
diff --git a/src/component/panels/Panels.tsx b/src/component/panels/Panels.tsx
index 3aa0708f3..145ce8adb 100644
--- a/src/component/panels/Panels.tsx
+++ b/src/component/panels/Panels.tsx
@@ -13,7 +13,6 @@ import InformationPanel from './InformationPanel';
import IntegralPanel from './IntegralsPanel/IntegralPanel';
import MatrixGenerationPanel from './MatrixGenerationPanel/MatrixGenerationPanel';
import MoleculePanel from './MoleculesPanel/MoleculePanel';
-import MultipleSpectraAnalysisPanel from './MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel';
import PeaksPanel from './PeaksPanel/PeaksPanel';
import RangesPanel from './RangesPanel/RangesPanel';
import SpectrumListPanel from './SpectrumsPanel/SpectrumListPanel';
@@ -21,6 +20,7 @@ import SummaryPanel from './SummaryPanel/SummaryPanel';
import ZonesPanel from './ZonesPanel/ZonesPanel';
import DatabasePanel from './databasePanel/DatabasePanel';
import FilterPanel from './filtersPanel/FilterPanel';
+import MultipleSpectraAnalysisPanel from './multipleAnalysisPanel/MultipleSpectraAnalysisPanel';
import PredictionPane from './predictionPanel/PredictionPanel';
import SpectrumSimulation from './spectrumSimulation/SpectrumSimulation';
diff --git a/src/component/panels/MultipleSpectraAnalysisPanel/AlignSpectra.tsx b/src/component/panels/multipleAnalysisPanel/AlignSpectra.tsx
similarity index 100%
rename from src/component/panels/MultipleSpectraAnalysisPanel/AlignSpectra.tsx
rename to src/component/panels/multipleAnalysisPanel/AlignSpectra.tsx
diff --git a/src/component/panels/MultipleSpectraAnalysisPanel/AnalysisChart.tsx b/src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx
similarity index 100%
rename from src/component/panels/MultipleSpectraAnalysisPanel/AnalysisChart.tsx
rename to src/component/panels/multipleAnalysisPanel/AnalysisChart.tsx
diff --git a/src/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.tsx b/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.tsx
similarity index 93%
rename from src/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.tsx
rename to src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.tsx
index 19acf92e8..ac0c523d2 100644
--- a/src/component/panels/MultipleSpectraAnalysisPanel/MultipleSpectraAnalysisPanel.tsx
+++ b/src/component/panels/multipleAnalysisPanel/MultipleSpectraAnalysisPanel.tsx
@@ -26,6 +26,7 @@ import DefaultPanelHeader from '../header/DefaultPanelHeader';
import PreferencesHeader from '../header/PreferencesHeader';
import AlignSpectra from './AlignSpectra';
+import AnalysisChart from './AnalysisChart';
import MultipleSpectraAnalysisTable from './MultipleSpectraAnalysisTable';
import MultipleSpectraAnalysisPreferences from './preferences';
@@ -168,11 +169,16 @@ function MultipleSpectraAnalysisPanelInner({
onClose={() => setCalibration(false)}
/>
) : (
-