From ccbff54c8bfe5b1328da65411ed44d30ed83ded0 Mon Sep 17 00:00:00 2001 From: tamarzanzouri Date: Fri, 18 Oct 2024 12:34:59 -0400 Subject: [PATCH] change path to relative path --- .../Devices/ChangePipette/InstructionStep.tsx | 18 ++++++------------ .../Devices/ChangePipette/LevelPipette.tsx | 7 +------ 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/app/src/organisms/Desktop/Devices/ChangePipette/InstructionStep.tsx b/app/src/organisms/Desktop/Devices/ChangePipette/InstructionStep.tsx index 05d43fdd11c..8dc18c1f7f5 100644 --- a/app/src/organisms/Desktop/Devices/ChangePipette/InstructionStep.tsx +++ b/app/src/organisms/Desktop/Devices/ChangePipette/InstructionStep.tsx @@ -29,18 +29,12 @@ export function InstructionStep(props: Props): JSX.Element { const display = displayCategory === 'GEN2' - ? new URL( - `/app/assets/images/change-pip/${direction}-${String( - mount - )}-${channelsKey}-GEN2-${diagram}@3x.png`, - import.meta.url - ).href - : new URL( - `/app/assets/images/change-pip/${direction}-${String( - mount - )}-${channelsKey}-${diagram}@3x.png`, - import.meta.url - ).href + ? `../app/assets/images/change-pip/${direction}-${String( + mount + )}-${channelsKey}-GEN2-${diagram}@3x.png` + : `../app/assets/images/change-pip/${direction}-${String( + mount + )}-${channelsKey}-${diagram}@3x.png` return ( diff --git a/app/src/organisms/Desktop/Devices/ChangePipette/LevelPipette.tsx b/app/src/organisms/Desktop/Devices/ChangePipette/LevelPipette.tsx index db49a4d6861..fdb4ee0e31e 100644 --- a/app/src/organisms/Desktop/Devices/ChangePipette/LevelPipette.tsx +++ b/app/src/organisms/Desktop/Devices/ChangePipette/LevelPipette.tsx @@ -39,12 +39,7 @@ export function LevelingVideo(props: { controls={true} > )