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 }} />
|
||||
<FileName
|
||||
{...{
|
||||
file,
|
||||
exifInfo: annotatedExif,
|
||||
allowEdits,
|
||||
scheduleUpdate,
|
||||
}}
|
||||
{...{ file, annotatedExif, allowEdits, scheduleUpdate }}
|
||||
/>
|
||||
|
||||
{annotatedExif?.takenOnDevice && (
|
||||
@ -735,12 +730,12 @@ const CreationTime: React.FC<CreationTimeProps> = ({
|
||||
|
||||
type FileNameProps = Pick<FileInfoProps, "allowEdits" | "scheduleUpdate"> & {
|
||||
file: EnteFile;
|
||||
exifInfo: AnnotatedExif | undefined;
|
||||
annotatedExif: AnnotatedExif | undefined;
|
||||
};
|
||||
|
||||
const FileName: React.FC<FileNameProps> = ({
|
||||
file,
|
||||
exifInfo,
|
||||
annotatedExif,
|
||||
allowEdits,
|
||||
scheduleUpdate,
|
||||
}) => {
|
||||
@ -779,7 +774,7 @@ const FileName: React.FC<FileNameProps> = ({
|
||||
)
|
||||
}
|
||||
title={[fileName, extension].join(".")}
|
||||
caption={getCaption(file, exifInfo)}
|
||||
caption={getCaption(file, annotatedExif)}
|
||||
trailingButton={
|
||||
allowEdits && <EditButton onClick={openEditMode} />
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user