From 8579231f487b7544252fb394f82ca7ccd3d09d19 Mon Sep 17 00:00:00 2001 From: sylenien Date: Fri, 25 Nov 2022 15:17:16 +0100 Subject: [PATCH] fix(ui): fix styling for guide popup --- .../components/StepsComponents/EventStep.tsx | 2 +- .../app/components/Session_/components/NotePopup.tsx | 6 +----- .../app/components/shared/GuidePopup/GuidePopup.tsx | 12 +++++++----- .../app/components/shared/XRayButton/XRayButton.tsx | 5 ++++- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/frontend/app/components/Session_/BugReport/components/StepsComponents/EventStep.tsx b/frontend/app/components/Session_/BugReport/components/StepsComponents/EventStep.tsx index fb0dc5b98..255cac92b 100644 --- a/frontend/app/components/Session_/BugReport/components/StepsComponents/EventStep.tsx +++ b/frontend/app/components/Session_/BugReport/components/StepsComponents/EventStep.tsx @@ -50,7 +50,7 @@ function Step({ step, ind, isDefault }: { step: IStep; ind: number; isDefault?: >
{ind + 1}
-
+
{durationFromMs(step.time)}
{/* @ts-ignore */} diff --git a/frontend/app/components/Session_/components/NotePopup.tsx b/frontend/app/components/Session_/components/NotePopup.tsx index 7c5ea49f4..83201fc57 100644 --- a/frontend/app/components/Session_/components/NotePopup.tsx +++ b/frontend/app/components/Session_/components/NotePopup.tsx @@ -26,11 +26,7 @@ function NotePopup({ return ( - Introducing Notes -
- } + title="Introducing Notes" description={'Annotate session replays and share your feedback with the rest of your team.'} >
-
{title}
-
{description}
-
+
{title}
+
{description}
+
} open={true} @@ -67,6 +67,8 @@ export default function GuidePopup({ children, title, description }: IProps) {
) : ( - children + <> + {children} + ); } diff --git a/frontend/app/components/shared/XRayButton/XRayButton.tsx b/frontend/app/components/shared/XRayButton/XRayButton.tsx index 98368da21..58daaa070 100644 --- a/frontend/app/components/shared/XRayButton/XRayButton.tsx +++ b/frontend/app/components/shared/XRayButton/XRayButton.tsx @@ -12,7 +12,10 @@ interface Props { } function XRayButton(props: Props) { const { isActive } = props; - const [showGuide, setShowGuide] = useState(!localStorage.getItem(FEATURE_KEYS.XRAY)); + // const [showGuide, setShowGuide] = useState(!localStorage.getItem(FEATURE_KEYS.XRAY)); + const showGuide = false; + const setShowGuide = (anyt: any) => anyt; + useEffect(() => { if (!showGuide) { return;