mirror of
https://github.com/ente-io/ente.git
synced 2025-07-06 07:28:34 +00:00
R
This commit is contained in:
parent
9327cb114c
commit
bc23f1dec9
@ -231,12 +231,7 @@ export const FileInfo: React.FC<FileInfoProps> = ({
|
|||||||
/>
|
/>
|
||||||
<CreationTime {...{ file, allowEdits, scheduleUpdate }} />
|
<CreationTime {...{ file, allowEdits, scheduleUpdate }} />
|
||||||
<FileName
|
<FileName
|
||||||
{...{
|
{...{ file, annotatedExif, allowEdits, scheduleUpdate }}
|
||||||
file,
|
|
||||||
exifInfo: annotatedExif,
|
|
||||||
allowEdits,
|
|
||||||
scheduleUpdate,
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{annotatedExif?.takenOnDevice && (
|
{annotatedExif?.takenOnDevice && (
|
||||||
@ -735,12 +730,12 @@ const CreationTime: React.FC<CreationTimeProps> = ({
|
|||||||
|
|
||||||
type FileNameProps = Pick<FileInfoProps, "allowEdits" | "scheduleUpdate"> & {
|
type FileNameProps = Pick<FileInfoProps, "allowEdits" | "scheduleUpdate"> & {
|
||||||
file: EnteFile;
|
file: EnteFile;
|
||||||
exifInfo: AnnotatedExif | undefined;
|
annotatedExif: AnnotatedExif | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
const FileName: React.FC<FileNameProps> = ({
|
const FileName: React.FC<FileNameProps> = ({
|
||||||
file,
|
file,
|
||||||
exifInfo,
|
annotatedExif,
|
||||||
allowEdits,
|
allowEdits,
|
||||||
scheduleUpdate,
|
scheduleUpdate,
|
||||||
}) => {
|
}) => {
|
||||||
@ -779,7 +774,7 @@ const FileName: React.FC<FileNameProps> = ({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
title={[fileName, extension].join(".")}
|
title={[fileName, extension].join(".")}
|
||||||
caption={getCaption(file, exifInfo)}
|
caption={getCaption(file, annotatedExif)}
|
||||||
trailingButton={
|
trailingButton={
|
||||||
allowEdits && <EditButton onClick={openEditMode} />
|
allowEdits && <EditButton onClick={openEditMode} />
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user