Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
fix: bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
mayuran-deriv committed Apr 15, 2024
1 parent 5d17078 commit d477115
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crowdin/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3304,7 +3304,7 @@
"-1356285247": "Accumulator options icon",
"-1500514644": "Accumulator",
"-1167572902": "Secure your gains with manual or automatic profit-taking. With durations of up to 230 ticks, accumulator options are ideal for those looking for fast-paced, strategic trades while balancing risk and reward.",
"-677391007": "Deriv Go",
"-319687255": "Deriv GO",
"-360691661": "Looking for a fast-paced, strategic and potentially explosive way to trade?",
"-1759381505": "What are turbo options?",
"-1461784880": "How do vanilla options work?",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useCallback } from 'react'
import React, { useCallback, useEffect } from 'react'
import ModalVideo from 'react-modal-video'

interface VideoModalProps {
Expand All @@ -10,6 +10,17 @@ interface VideoModalProps {
const VideoModal = ({ video_id, isOpen, onClose }: VideoModalProps) => {
const handleClose = useCallback(() => onClose(), [onClose])

useEffect(() => {
if (isOpen) {
document.body.style.overflow = 'hidden';
} else {
document.body.style.overflow = 'unset';
}
return () => {
document.body.style.overflow = 'unset';
};
}, [isOpen]);

return (
<ModalVideo
channel="vimeo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const WhatAreAccumulatorOptions = ({ handleModalToggle }: WhatAreAccumulatorOpti
width="24px"
/>
<CustomLink href={'/deriv-go'} size="md">
<Localize translate_text="_t_Deriv Go_t_" />
<Localize translate_text="_t_Deriv GO_t_" />
</CustomLink>
</div>
</div>
Expand Down

0 comments on commit d477115

Please sign in to comment.