Skip to content

Commit

Permalink
578 imageUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
dhinrichs-scottlogic committed Feb 28, 2024
1 parent a58a244 commit 019013e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Overlay/LevelsComplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function LevelsComplete({
</p>
</>
),
imageName: Manager,
imageUrl: Manager,
},
{
content: (
Expand All @@ -40,7 +40,7 @@ function LevelsComplete({
/>
</>
),
imageName: BotAvatarDefault,
imageUrl: BotAvatarDefault,
},
];

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Overlay/MissionInformation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function MissionInformation({
)}
</>
),
imageName:
imageUrl:
speaker === 'ScottBrew Manager'
? Manager
: speaker === 'ScottBrew Lawyer'
Expand Down
5 changes: 2 additions & 3 deletions frontend/src/components/Overlay/MultipageOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function MultipageOverlay({
}: {
pages: {
content: ReactNode;
imageName?: string;
imageUrl?: string;
}[];
closeOverlay: () => void;
heading: string;
Expand All @@ -39,8 +39,7 @@ function MultipageOverlay({
<div className="multi-page-text-image-container">
<img
className="multi-page-speaker-image"
// src={speakerImage}
src={pages[currentPage].imageName}
src={pages[currentPage].imageUrl}
alt=""
/>
<span className="multi-page-speaker-text">
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Overlay/OverlayWelcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function OverlayWelcome({
</p>
</>
),
imageName: BotAvatarDefault,
imageUrl: BotAvatarDefault,
},
{
content: (
Expand All @@ -49,7 +49,7 @@ function OverlayWelcome({
/>
</>
),
imageName: BotAvatarDefault,
imageUrl: BotAvatarDefault,
},
];

Expand Down

0 comments on commit 019013e

Please sign in to comment.