Fix all biome linter errors (#541)
This commit is contained in:
parent
f23c73f6a5
commit
e5d654bf41
46 changed files with 317 additions and 275 deletions
|
|
@ -1,10 +1,15 @@
|
|||
import { Attachment, ChatRequestOptions, CreateMessage, Message } from 'ai';
|
||||
import type {
|
||||
Attachment,
|
||||
ChatRequestOptions,
|
||||
CreateMessage,
|
||||
Message,
|
||||
} from 'ai';
|
||||
import cx from 'classnames';
|
||||
import { formatDistance } from 'date-fns';
|
||||
import { AnimatePresence, motion } from 'framer-motion';
|
||||
import {
|
||||
Dispatch,
|
||||
SetStateAction,
|
||||
type Dispatch,
|
||||
type SetStateAction,
|
||||
useCallback,
|
||||
useEffect,
|
||||
useState,
|
||||
|
|
@ -17,7 +22,7 @@ import {
|
|||
useWindowSize,
|
||||
} from 'usehooks-ts';
|
||||
|
||||
import { Document, Suggestion, Vote } from '@/lib/db/schema';
|
||||
import type { Document, Suggestion, Vote } from '@/lib/db/schema';
|
||||
import { fetcher } from '@/lib/utils';
|
||||
|
||||
import { DiffView } from './diffview';
|
||||
|
|
@ -168,9 +173,8 @@ export function Block({
|
|||
};
|
||||
|
||||
return [...currentDocuments, newDocument];
|
||||
} else {
|
||||
return currentDocuments;
|
||||
}
|
||||
return currentDocuments;
|
||||
},
|
||||
{ revalidate: false }
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue