From b8b04201f28246a80c7b6aa3eadbb76a52228bb5 Mon Sep 17 00:00:00 2001 From: sagarika-padmanaban Date: Mon, 23 Dec 2024 11:09:20 +0530 Subject: [PATCH 1/2] fix --- .../component/CL-Transcription/SettingsButtonComponent.jsx | 4 +++- .../container/CL-Transcription/TranscriptionRightPanel.jsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/pages/component/CL-Transcription/SettingsButtonComponent.jsx b/src/ui/pages/component/CL-Transcription/SettingsButtonComponent.jsx index 7ae0056d..89ba8b75 100644 --- a/src/ui/pages/component/CL-Transcription/SettingsButtonComponent.jsx +++ b/src/ui/pages/component/CL-Transcription/SettingsButtonComponent.jsx @@ -229,7 +229,9 @@ hash, { - sethash(!hash); + const newValue = !hash; + sethash(newValue); + sessionStorage.setItem("hash", JSON.stringify(newValue)); }} />} /> diff --git a/src/ui/pages/container/CL-Transcription/TranscriptionRightPanel.jsx b/src/ui/pages/container/CL-Transcription/TranscriptionRightPanel.jsx index ab5f3a8d..6fa7643b 100644 --- a/src/ui/pages/container/CL-Transcription/TranscriptionRightPanel.jsx +++ b/src/ui/pages/container/CL-Transcription/TranscriptionRightPanel.jsx @@ -152,7 +152,7 @@ const TranscriptionRightPanel = ({ const [currentSelectedIndex, setCurrentSelectedIndex] = useState(0); const [tagSuggestionsAnchorEl, setTagSuggestionsAnchorEl] = useState(null); const [tagSuggestionsAcoustic, setTagSuggestionsAcoustic] = useState(false); - const [hash, sethash] = useState(false); + const [hash, sethash] = useState(() => JSON.parse(sessionStorage.getItem("hash")) || false); const [tagSuggestionList, setTagSuggestionList] = useState([]); const [textWithoutTripleDollar, setTextWithoutTripleDollar] = useState(""); const [textAfterTripleDollar, setTextAfterTripleDollar] = useState(""); From 9ab8bfcd4f59620906f00342d5352e7065c071fb Mon Sep 17 00:00:00 2001 From: sagarika-padmanaban Date: Mon, 23 Dec 2024 11:31:55 +0530 Subject: [PATCH 2/2] fix --- src/config/config.js | 2 +- .../component/CL-Transcription/SettingsButtonComponent.jsx | 5 +++-- .../container/CL-Transcription/TranscriptionRightPanel.jsx | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/config/config.js b/src/config/config.js index 6514049d..999212c0 100644 --- a/src/config/config.js +++ b/src/config/config.js @@ -2,7 +2,7 @@ const configs = { BASE_URL: "https://backend.prod2.shoonya.ai4bharat.org", BASE_URL_AUTO: process.env.REACT_APP_APIGW_BASE_URL ? process.env.REACT_APP_APIGW_BASE_URL - :"https://backend.dev.shoonya.ai4bharat.org" + :"https://backend.shoonya.ai4bharat.org" }; export default configs; diff --git a/src/ui/pages/component/CL-Transcription/SettingsButtonComponent.jsx b/src/ui/pages/component/CL-Transcription/SettingsButtonComponent.jsx index 89ba8b75..14dd9e62 100644 --- a/src/ui/pages/component/CL-Transcription/SettingsButtonComponent.jsx +++ b/src/ui/pages/component/CL-Transcription/SettingsButtonComponent.jsx @@ -58,6 +58,7 @@ const SettingsButtonComponent = ({ handleDoubleHashes, sethash, hash, +ProjectDetails, onUndo, onRedo, undoStack, @@ -225,7 +226,7 @@ hash, } /> - + {ProjectDetails.title.toLowerCase().includes("yt_transcription")&& { @@ -234,7 +235,7 @@ hash, sessionStorage.setItem("hash", JSON.stringify(newValue)); }} />} /> - + }