Skip to content

Commit

Permalink
Merge pull request #831 from ita-social-projects/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
MementoMorj authored Sep 26, 2023
2 parents 00bca7b + c6e05b8 commit 0e06421
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const StreetcodeCard = ({ streetcode, setActiveTagId, setActiveBlock }: Props) =
useAsync(() => {
if (id && id > 0) {
fetchAudioByStreetcodeId(id).then(() => {
setAudioIsLoaded(true)
setAudioIsLoaded(true);
});
}
}, [id]);
Expand All @@ -68,7 +68,7 @@ const StreetcodeCard = ({ streetcode, setActiveTagId, setActiveBlock }: Props) =
if (id && id > 0) {
ImagesApi.getByStreetcodeId(id ?? 1)
.then((imgs) => {
setImages(imgs);
setImages(imgs);
streecodePageLoaderContext.addBlockFetched();
})
.catch((e) => { });
Expand All @@ -92,7 +92,7 @@ const StreetcodeCard = ({ streetcode, setActiveTagId, setActiveBlock }: Props) =
key={im.id}
src={base64ToUrl(im.base64, im.mimeType)}
className="streetcodeImg"
style={{objectFit: 'contain'}}
style={{ objectFit: 'contain' }}
alt={im.imageDetails?.alt}
/>
))}
Expand Down Expand Up @@ -120,16 +120,15 @@ const StreetcodeCard = ({ streetcode, setActiveTagId, setActiveBlock }: Props) =
</div>
<p className="teaserBlock">
{streetcode?.teaser}
{streetcode?.teaser}
{streetcode?.teaser}
...
</p>

<div className="cardFooter">
{audio?.base64 && audioIsLoaded
? (
<Button
type="primary"
className={"audioBtn audioBtnActive"}
className="audioBtn audioBtnActive"
onClick={() => {
setModal('audio');
audioClickEvent(streetcode?.id ?? 0);
Expand Down

0 comments on commit 0e06421

Please sign in to comment.