Skip to content

Commit

Permalink
Merge pull request #1129 from AI4Bharat/analytic-org-ui
Browse files Browse the repository at this point in the history
## store
  • Loading branch information
ishvindersethi22 authored Dec 23, 2024
2 parents 06b5943 + 9ab8bfc commit 97887a0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const SettingsButtonComponent = ({
handleDoubleHashes,
sethash,
hash,
ProjectDetails,
onUndo,
onRedo,
undoStack,
Expand Down Expand Up @@ -225,14 +226,16 @@ hash,
}
/>
</MenuItem>
<MenuItem>
{ProjectDetails.title.toLowerCase().includes("yt_transcription")&&<MenuItem>
<FormControlLabel
label="Double Hash"
control={<Checkbox checked={hash} onChange={() => {
sethash(!hash);
const newValue = !hash;
sethash(newValue);
sessionStorage.setItem("hash", JSON.stringify(newValue));
}} />}
/>
</MenuItem>
</MenuItem>}
<MenuItem>
<FormControlLabel
label="Advanced Settings"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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("");
Expand Down Expand Up @@ -694,6 +694,7 @@ const TranscriptionRightPanel = ({
handleDoubleHashes={handleDoubleHashes}
sethash={sethash}
hash={hash}
ProjectDetails={ProjectDetails}
saveTranscriptHandler={saveTranscriptHandler}
setOpenConfirmDialog={setOpenConfirmDialog}
onUndo={onUndo}
Expand Down

0 comments on commit 97887a0

Please sign in to comment.