mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
chore: upgrade oxlint to v0.13.2 (#8891)
Co-authored-by: LongYinan <lynweklm@gmail.com>
This commit is contained in:
@@ -120,7 +120,7 @@ export function EditPrompt({
|
||||
<div className="px-5 py-4 overflow-y-auto space-y-[10px] flex flex-col">
|
||||
<div className="text-sm font-medium">Messages</div>
|
||||
{messages.map((message, index) => (
|
||||
<div key={index} className="flex flex-col gap-3">
|
||||
<div key={message.content} className="flex flex-col gap-3">
|
||||
{index !== 0 && <Separator />}
|
||||
<div>
|
||||
<div className="text-sm font-normal">Role</div>
|
||||
|
||||
@@ -40,7 +40,7 @@ export function Prompts() {
|
||||
<div className="flex flex-col rounded-md border w-full">
|
||||
{list.map((item, index) => (
|
||||
<PromptRow
|
||||
key={item.name.concat(index.toString())}
|
||||
key={`${item.name}-${index}`}
|
||||
item={item}
|
||||
index={index}
|
||||
/>
|
||||
|
||||
@@ -51,9 +51,9 @@ export const CollapsibleItem = ({
|
||||
</AccordionTrigger>
|
||||
</NavLink>
|
||||
<AccordionContent className=" flex flex-col gap-2 py-1">
|
||||
{items.map((item, index) => (
|
||||
{items.map(item => (
|
||||
<NavLink
|
||||
key={index}
|
||||
key={item}
|
||||
to={`/admin/settings/${title}#${item}`}
|
||||
className={({ isActive }) => {
|
||||
return isActive && activeSubTab === item
|
||||
|
||||
@@ -213,7 +213,7 @@ export const Form = () => {
|
||||
<div className="py-2 px-0 text-sm mt-16 max-lg:mt-5 relative">
|
||||
{Array.from({ length: count }).map((_, index) => (
|
||||
<span
|
||||
key={index}
|
||||
key={`${index}`}
|
||||
className={`inline-block w-16 h-1 rounded mr-1 ${
|
||||
index <= current - 1
|
||||
? 'bg-primary'
|
||||
|
||||
Reference in New Issue
Block a user