From fb6084563465b6c69c67f71e7524a9f1c890bfa7 Mon Sep 17 00:00:00 2001 From: mahdi Date: Sun, 1 May 2022 14:06:55 +0430 Subject: [PATCH] update App.js, src/components/ReactTable4/index.js, src/components/ReactTable5/index.js and src/index.scss --- src/App.js | 4 +--- src/components/ReactTable4/index.js | 3 ++- src/components/ReactTable5/index.js | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App.js b/src/App.js index 7bf25ec..5df8b0a 100644 --- a/src/App.js +++ b/src/App.js @@ -64,7 +64,6 @@ import OutlineInput from "./components/OutlineInput"; import CancleIcon from "./components/CancleIcon"; import ButtonNewDesign from "./components/ButtonNewDesign"; import TimeLineComponent from "./components/TimeLineComponent"; - import TitleSubtitle from "./components/TitleSubtitle"; import TimeLine from "./components/TimeLineComponent/Timeline"; import ProfilePicNextToEachOther from "./components/ProfilePicNextToEachOther"; @@ -83,7 +82,6 @@ import CardDesign2 from "./components/CardDesign2"; import ButtonDivTag from "./components/ButtonDivTag"; import Button from "./components/Button"; import LeafletMap from "./components/LeafletMap"; - import TestComponentNew from "./components/TestComponentNew"; import DateRangePicker from "./components/DateRangePicker"; import BoxNextToEachOther from "./components/BoxNextToEachOther"; @@ -189,7 +187,7 @@ function App() { {/* */} {/* ----------------------------$$$ end---------------------------- */} - {/* */} + {/* */} {/* ----------------------------$$$ start---------------------------- */} diff --git a/src/components/ReactTable4/index.js b/src/components/ReactTable4/index.js index 35f1200..8534a8e 100644 --- a/src/components/ReactTable4/index.js +++ b/src/components/ReactTable4/index.js @@ -14,6 +14,7 @@ const ReactTable4 = ({ breadCrumbs, subTitle, title }) => { const [tabs, setTabs] = useState([ { name: "جدول " + breadCrumbs[breadCrumbs.length - 1].name, id: 0 }, ]); + let [activeTab, setActivateTab] = useState(0); const stateRef = useRef(); @@ -59,7 +60,7 @@ const ReactTable4 = ({ breadCrumbs, subTitle, title }) => { ))}
- +
{ const [tabs, setTabs] = useState([ { name: "جدول " + breadCrumbs[breadCrumbs.length - 1].name, id: 0 }, ]); + let [activeTab, setActivateTab] = useState(0); const stateRef = useRef();