Skip to content

Commit 934f8f6

Browse files
chore(file-viewer): remove dead PREVIEW_ONLY_EXTENSIONS export
Co-authored-by: Theodore Li <TheodoreSpeaks@users.noreply.github.com>
1 parent 1376bc3 commit 934f8f6

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export type { PreviewMode } from './file-viewer'
22
export { FileViewer, isPreviewable, isTextEditable } from './file-viewer'
3-
export { PREVIEW_ONLY_EXTENSIONS, RICH_PREVIEWABLE_EXTENSIONS } from './preview-panel'
3+
export { RICH_PREVIEWABLE_EXTENSIONS } from './preview-panel'

apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/preview-panel.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ const PREVIEWABLE_EXTENSIONS: Record<string, PreviewType> = {
2323
svg: 'svg',
2424
}
2525

26-
/** Extensions that should default to rendered preview (no raw editor). */
27-
export const PREVIEW_ONLY_EXTENSIONS = new Set(['html', 'htm', 'svg'])
28-
2926
/** All extensions that have a rich preview renderer. */
3027
export const RICH_PREVIEWABLE_EXTENSIONS = new Set(Object.keys(PREVIEWABLE_EXTENSIONS))
3128

0 commit comments

Comments
 (0)