Skip to content

Commit

Permalink
change path to relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarZanzouri committed Oct 18, 2024
1 parent bad2d1b commit ccbff54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Flex justifyContent={JUSTIFY_SPACE_EVENLY}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@ export function LevelingVideo(props: {
controls={true}
>
<source
src={
new URL(
`/app/assets/videos/pip-leveling/${pipetteName}-${mount}.webm`,
import.meta.url
).href
}
src={`../app/assets/videos/pip-leveling/${pipetteName}-${mount}.webm`}
/>
</video>
)
Expand Down

0 comments on commit ccbff54

Please sign in to comment.