Version 1.6.200
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
"use client"; // /components/modules/kue705FO/charts/ChartSwitcher.tsx
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
import React, { useState, useEffect } from "react";
|
||||
import ReactModal from "react-modal";
|
||||
import LoopChartActionBar from "./LoopMeasurementChart/LoopChartActionBar";
|
||||
import TDRChartActionBar from "./TDRChart/TDRChartActionBar";
|
||||
import LoopMeasurementChart from "./LoopMeasurementChart/LoopMeasurementChart";
|
||||
import TDRChart from "./TDRChart/TDRChart";
|
||||
import { useSelector, useDispatch } from "react-redux";
|
||||
import { AppDispatch } from "../../../../../redux/store";
|
||||
@@ -31,6 +31,10 @@ const ChartSwitcher: React.FC<ChartSwitcherProps> = ({
|
||||
onClose,
|
||||
slotIndex,
|
||||
}) => {
|
||||
const LoopMeasurementChart = dynamic(
|
||||
() => import("./LoopMeasurementChart/LoopMeasurementChart.client"),
|
||||
{ ssr: false }
|
||||
);
|
||||
const dispatch = useDispatch<AppDispatch>();
|
||||
const chartTitle = useSelector(
|
||||
(state: RootState) => state.loopChartType.chartTitle
|
||||
|
||||
Reference in New Issue
Block a user