lint: fix eslint error and build:check

This commit is contained in:
kangfenmao
2025-05-30 13:44:58 +08:00
parent 970c517f4b
commit a5d10e1ef3
3 changed files with 4 additions and 4 deletions
@@ -54,7 +54,7 @@ const Topics: FC<Props> = ({ assistant: _assistant, activeTopic, setActiveTopic
const { assistants } = useAssistants()
const { assistant, removeTopic, moveTopic, updateTopic, updateTopics } = useAssistant(_assistant.id)
const { t } = useTranslation()
const { showTopicTime, topicPosition, pinTopicsToTop } = useSettings()
const { showTopicTime, pinTopicsToTop } = useSettings()
const borderRadius = showTopicTime ? 12 : 'var(--list-item-border-radius)'
@@ -394,7 +394,7 @@ const Topics: FC<Props> = ({ assistant: _assistant, activeTopic, setActiveTopic
return (
<Dropdown menu={{ items: getTopicMenuItems }} trigger={['contextMenu']}>
<Container right={topicPosition === 'right'} className="topics-tab">
<Container className="topics-tab">
<DragableList list={sortedTopics} onUpdate={updateTopics}>
{(topic) => {
const isActive = topic.id === activeTopic?.id
@@ -141,7 +141,7 @@ const WebSearchProviderSetting: FC<Props> = ({ provider: _provider }) => {
<>
<SettingTitle>
<Flex align="center" gap={8}>
<ProviderLogo shape="circle" src={getWebSearchProviderLogo(provider.id)} size={24} />
<ProviderLogo src={getWebSearchProviderLogo(provider.id)} />
<ProviderName> {provider.name}</ProviderName>
{officialWebsite && webSearchProviderConfig?.websites && (
<Link target="_blank" href={webSearchProviderConfig.websites.official}>