capitalize title to Visual Reference across application
This commit is contained in:
parent
d4bd2d43aa
commit
5f58a8dc30
|
|
@ -133,7 +133,7 @@ const GalleryImage = memo(function GalleryImage({
|
||||||
previous.item.caption === next.item.caption
|
previous.item.caption === next.item.caption
|
||||||
);
|
);
|
||||||
|
|
||||||
export function ContentMediaGallery({ media, title = "Visual reference" }: ContentMediaGalleryProps) {
|
export function ContentMediaGallery({ media, title = "Visual Reference" }: ContentMediaGalleryProps) {
|
||||||
const items = useMemo(() => sortMedia(media ?? []), [media]);
|
const items = useMemo(() => sortMedia(media ?? []), [media]);
|
||||||
const { width: windowWidth } = useWindowDimensions();
|
const { width: windowWidth } = useWindowDimensions();
|
||||||
const carouselWidth = Math.max(windowWidth - Spacing.md * 2, 280);
|
const carouselWidth = Math.max(windowWidth - Spacing.md * 2, 280);
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ export function ImageGallery({ images }: { images: Record<string, unknown>[] })
|
||||||
const relationalMedia = useRelationalContentMedia();
|
const relationalMedia = useRelationalContentMedia();
|
||||||
|
|
||||||
if (relationalMedia.length > 0) {
|
if (relationalMedia.length > 0) {
|
||||||
return <ContentMediaGallery media={relationalMedia} title="Visual reference" />;
|
return <ContentMediaGallery media={relationalMedia} title="Visual Reference" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
const visible = images.filter((item) => asString(item.image_path).trim().length > 0);
|
const visible = images.filter((item) => asString(item.image_path).trim().length > 0);
|
||||||
|
|
@ -37,7 +37,7 @@ export function ImageGallery({ images }: { images: Record<string, unknown>[] })
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
return <ContentMediaGallery media={fallbackMedia} title="Visual reference" />;
|
return <ContentMediaGallery media={fallbackMedia} title="Visual Reference" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue