分享页: 照片按时间倒序、统一间距、卡片右下角显示日期与城市
This commit is contained in:
@@ -71,6 +71,7 @@ export interface albumQuery_album_media_videoWeb {
|
||||
export interface albumQuery_album_media {
|
||||
__typename: "Media";
|
||||
id: string;
|
||||
title: string;
|
||||
type: MediaType;
|
||||
/**
|
||||
* A short string that can be used to generate a blured version of the media, to show while the original is loading
|
||||
|
||||
@@ -6,6 +6,7 @@ import { gql, useQuery } from '@apollo/client'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import useURLParameters from '../../hooks/useURLParameters'
|
||||
import useOrderingParams from '../../hooks/useOrderingParams'
|
||||
import { OrderDirection } from '../../__generated__/globalTypes'
|
||||
import { shareAlbumQuery } from './__generated__/shareAlbumQuery'
|
||||
import useScrollPagination from '../../hooks/useScrollPagination'
|
||||
import PaginateLoader from '../../components/PaginateLoader'
|
||||
@@ -103,7 +104,11 @@ const AlbumSharePage = ({ albumID, token, password }: AlbumSharePageProps) => {
|
||||
const { t } = useTranslation()
|
||||
|
||||
const urlParams = useURLParameters()
|
||||
const orderParams = useOrderingParams(urlParams)
|
||||
const orderParams = useOrderingParams(
|
||||
urlParams,
|
||||
'date_shot',
|
||||
OrderDirection.DESC
|
||||
)
|
||||
|
||||
const { data, error, loading, fetchMore } = useQuery<shareAlbumQuery>(
|
||||
SHARE_ALBUM_QUERY,
|
||||
|
||||
Reference in New Issue
Block a user