diff options
Diffstat (limited to 'apps/web/components/new/document-modal/content/index.tsx')
| -rw-r--r-- | apps/web/components/new/document-modal/content/index.tsx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/web/components/new/document-modal/content/index.tsx b/apps/web/components/new/document-modal/content/index.tsx index c06bc550..39c5a2f0 100644 --- a/apps/web/components/new/document-modal/content/index.tsx +++ b/apps/web/components/new/document-modal/content/index.tsx @@ -56,10 +56,7 @@ function getContentType(document: DocumentWithMemories | null): ContentType { document.metadata?.mimeType?.toString().startsWith("image/") if (isImage && document.url) return "image" - if ( - document.type === "tweet" || - (document.url && isTwitterUrl(document.url)) - ) + if (document.type === "tweet" || (document.url && isTwitterUrl(document.url))) return "tweet" if (document.type === "text") return "text" if (document.type === "pdf") return "pdf" @@ -83,9 +80,7 @@ export function DocumentContent({ switch (contentType) { case "image": - return ( - <ImagePreview url={document.url ?? ""} title={document.title} /> - ) + return <ImagePreview url={document.url ?? ""} title={document.title} /> case "tweet": return ( |