mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-01 01:29:31 +08:00
chore: bump toolchain & fix lint
This commit is contained in:
+2
-7
@@ -428,13 +428,8 @@ export class AIChatComposer extends SignalWatcher(
|
||||
};
|
||||
|
||||
private readonly addSelectedContextChip = async () => {
|
||||
const {
|
||||
attachments = [],
|
||||
snapshot,
|
||||
combinedElementsMarkdown,
|
||||
docs = [],
|
||||
html,
|
||||
} = this.chatContextValue;
|
||||
const { attachments, snapshot, combinedElementsMarkdown, docs, html } =
|
||||
this.chatContextValue;
|
||||
await this.removeSelectedContextChip();
|
||||
const chip: SelectedContextChip = {
|
||||
uuid: uuidv4(),
|
||||
|
||||
@@ -23,7 +23,7 @@ export interface AIPanelErrorConfig {
|
||||
}
|
||||
|
||||
export interface AIPanelGeneratingConfig {
|
||||
generatingIcon: TemplateResult<1>;
|
||||
generatingIcon?: TemplateResult<1>;
|
||||
height?: number;
|
||||
stages?: string[];
|
||||
}
|
||||
|
||||
@@ -67,11 +67,14 @@ interface ErrorBaseProps {
|
||||
buttons?: ReactElement[];
|
||||
}
|
||||
|
||||
const DEFAULT_ICON = <FileIcon />;
|
||||
const EMPTY_BUTTONS: ReactElement[] = [];
|
||||
|
||||
const ErrorBase = ({
|
||||
title,
|
||||
subtitle,
|
||||
icon = <FileIcon />,
|
||||
buttons = [],
|
||||
icon = DEFAULT_ICON,
|
||||
buttons = EMPTY_BUTTONS,
|
||||
}: ErrorBaseProps) => {
|
||||
return (
|
||||
<div className={clsx([styles.viewer, styles.error])}>
|
||||
|
||||
Reference in New Issue
Block a user