mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 02:13:00 +08:00
feat(core): unused blob management in settings (#9795)
fix AF-2144, PD-2064, PD-2065, PD-2066
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { html } from 'lit';
|
||||
|
||||
export function getAttachmentFileIcons(filetype: string) {
|
||||
export function getAttachmentFileIcon(filetype: string) {
|
||||
switch (filetype) {
|
||||
case 'img':
|
||||
return IMGFileIcon;
|
||||
|
||||
@@ -7,7 +7,7 @@ import { DualLinkIcon, LinkIcon } from '@blocksuite/icons/lit';
|
||||
import { css, html, LitElement, type TemplateResult } from 'lit';
|
||||
import { property } from 'lit/decorators.js';
|
||||
|
||||
import { getAttachmentFileIcons } from '../../../../../icons';
|
||||
import { getAttachmentFileIcon } from '../../../../../icons';
|
||||
import { RefNodeSlotsProvider } from '../../../../extension/ref-node-slots';
|
||||
|
||||
export class FootNotePopup extends WithDisposable(LitElement) {
|
||||
@@ -34,7 +34,7 @@ export class FootNotePopup extends WithDisposable(LitElement) {
|
||||
if (!fileType) {
|
||||
return undefined;
|
||||
}
|
||||
return getAttachmentFileIcons(fileType);
|
||||
return getAttachmentFileIcon(fileType);
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user