|
@@ -1,7 +1,7 @@
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
import React, { useState } from 'react'
|
|
|
-import cn from 'classnames'
|
|
|
import { RiArrowDownSLine } from '@remixicon/react'
|
|
|
+import cn from '@/utils/classnames'
|
|
|
import {
|
|
|
PortalToFollowElem,
|
|
|
PortalToFollowElemContent,
|
|
@@ -100,7 +100,7 @@ const AppTypeSelector = ({ value, onChange }: AppSelectorProps) => {
|
|
|
}}>
|
|
|
<ChatBot className='mr-2 w-4 h-4 text-[#1570EF]' />
|
|
|
<div className='grow text-gray-700 text-[13px] font-medium leading-[18px]'>{t('app.typeSelector.chatbot')}</div>
|
|
|
- {value === 'chatbot' && <Check className='w-4 h-4 text-primary-600'/>}
|
|
|
+ {value === 'chatbot' && <Check className='w-4 h-4 text-primary-600' />}
|
|
|
</div>
|
|
|
<div className='flex items-center pl-3 py-[6px] pr-2 rounded-lg cursor-pointer hover:bg-gray-50' onClick={() => {
|
|
|
onChange('agent')
|
|
@@ -108,7 +108,7 @@ const AppTypeSelector = ({ value, onChange }: AppSelectorProps) => {
|
|
|
}}>
|
|
|
<CuteRobote className='mr-2 w-4 h-4 text-indigo-600' />
|
|
|
<div className='grow text-gray-700 text-[13px] font-medium leading-[18px]'>{t('app.typeSelector.agent')}</div>
|
|
|
- {value === 'agent' && <Check className='w-4 h-4 text-primary-600'/>}
|
|
|
+ {value === 'agent' && <Check className='w-4 h-4 text-primary-600' />}
|
|
|
</div>
|
|
|
<div className='flex items-center pl-3 py-[6px] pr-2 rounded-lg cursor-pointer hover:bg-gray-50' onClick={() => {
|
|
|
onChange('workflow')
|
|
@@ -116,7 +116,7 @@ const AppTypeSelector = ({ value, onChange }: AppSelectorProps) => {
|
|
|
}}>
|
|
|
<Route className='mr-2 w-4 h-4 text-[#F79009]' />
|
|
|
<div className='grow text-gray-700 text-[13px] font-medium leading-[18px]'>{t('app.typeSelector.workflow')}</div>
|
|
|
- {value === 'workflow' && <Check className='w-4 h-4 text-primary-600'/>}
|
|
|
+ {value === 'workflow' && <Check className='w-4 h-4 text-primary-600' />}
|
|
|
</div>
|
|
|
</div>
|
|
|
</PortalToFollowElemContent>
|