mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 16:53:47 +03:00
Merge branch 'feature/add-download-sources' of github.com:hydralauncher/hydra into feature/add-download-sources
This commit is contained in:
commit
5afe78467e
@ -13,7 +13,7 @@ export function GallerySlider() {
|
|||||||
|
|
||||||
const { t } = useTranslation("game_details");
|
const { t } = useTranslation("game_details");
|
||||||
|
|
||||||
const hasScreenshots = shopDetails && shopDetails.screenshots.length;
|
const hasScreenshots = shopDetails && shopDetails.screenshots?.length;
|
||||||
const hasMovies = shopDetails && shopDetails.movies?.length;
|
const hasMovies = shopDetails && shopDetails.movies?.length;
|
||||||
|
|
||||||
const mediaCount = useMemo(() => {
|
const mediaCount = useMemo(() => {
|
||||||
@ -77,7 +77,7 @@ export function GallerySlider() {
|
|||||||
|
|
||||||
const previews = useMemo(() => {
|
const previews = useMemo(() => {
|
||||||
const screenshotPreviews =
|
const screenshotPreviews =
|
||||||
shopDetails?.screenshots.map(({ id, path_thumbnail }) => ({
|
shopDetails?.screenshots?.map(({ id, path_thumbnail }) => ({
|
||||||
id,
|
id,
|
||||||
thumbnail: path_thumbnail,
|
thumbnail: path_thumbnail,
|
||||||
})) ?? [];
|
})) ?? [];
|
||||||
@ -121,7 +121,7 @@ export function GallerySlider() {
|
|||||||
))}
|
))}
|
||||||
|
|
||||||
{hasScreenshots &&
|
{hasScreenshots &&
|
||||||
shopDetails.screenshots.map((image, i) => (
|
shopDetails.screenshots?.map((image, i) => (
|
||||||
<img
|
<img
|
||||||
key={image.id}
|
key={image.id}
|
||||||
className={styles.gallerySliderMedia}
|
className={styles.gallerySliderMedia}
|
||||||
|
@ -37,7 +37,7 @@ export interface SteamAppDetails {
|
|||||||
publishers: string[];
|
publishers: string[];
|
||||||
genres: SteamGenre[];
|
genres: SteamGenre[];
|
||||||
movies?: SteamMovies[];
|
movies?: SteamMovies[];
|
||||||
screenshots: SteamScreenshot[];
|
screenshots?: SteamScreenshot[];
|
||||||
pc_requirements: {
|
pc_requirements: {
|
||||||
minimum: string;
|
minimum: string;
|
||||||
recommended: string;
|
recommended: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user