Skip to content

Commit

Permalink
[SecuritySolution][Serverless] Fix video missing from the onboarding …
Browse files Browse the repository at this point in the history
  • Loading branch information
angorayc authored Mar 27, 2024
1 parent 69e26e3 commit 1837fa3
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import { WATCH_VIDEO_BUTTON_TITLE } from '../../translations';
import { OverviewSteps, QuickStartSectionCardsId, SectionId } from '../../types';
import { ContentWrapper } from './content_wrapper';

const VIDEO_CONTENT_HEIGHT = 320;

const VideoComponent: React.FC = () => {
const { toggleTaskCompleteStatus, finishedSteps } = useStepContext();
const ref = React.useRef<HTMLIFrameElement>(null);
Expand All @@ -37,7 +39,11 @@ const VideoComponent: React.FC = () => {

return (
<ContentWrapper>
<>
<div
css={css`
height: ${VIDEO_CONTENT_HEIGHT}px;
`}
>
{!isVideoPlaying && !isFinishedStep && (
<EuiFlexGroup
css={css`
Expand Down Expand Up @@ -74,7 +80,7 @@ const VideoComponent: React.FC = () => {
title={WATCH_VIDEO_BUTTON_TITLE}
/>
)}
</>
</div>
</ContentWrapper>
);
};
Expand Down

0 comments on commit 1837fa3

Please sign in to comment.