mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
chore(web): new lint setup (#30020)
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
This commit is contained in:
@ -1,21 +1,21 @@
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import {
|
||||
RiErrorWarningFill,
|
||||
} from '@remixicon/react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { CheckCircle } from '@/app/components/base/icons/src/vender/solid/general'
|
||||
|
||||
export const ValidatedErrorIcon = () => {
|
||||
return <RiErrorWarningFill className='h-4 w-4 text-[#D92D20]' />
|
||||
return <RiErrorWarningFill className="h-4 w-4 text-[#D92D20]" />
|
||||
}
|
||||
|
||||
export const ValidatedSuccessIcon = () => {
|
||||
return <CheckCircle className='h-4 w-4 text-[#039855]' />
|
||||
return <CheckCircle className="h-4 w-4 text-[#039855]" />
|
||||
}
|
||||
|
||||
export const ValidatingTip = () => {
|
||||
const { t } = useTranslation()
|
||||
return (
|
||||
<div className={'mt-2 text-xs font-normal text-primary-600'}>
|
||||
<div className="mt-2 text-xs font-normal text-primary-600">
|
||||
{t('common.provider.validating')}
|
||||
</div>
|
||||
)
|
||||
@ -25,8 +25,9 @@ export const ValidatedErrorMessage = ({ errorMessage }: { errorMessage: string }
|
||||
const { t } = useTranslation()
|
||||
|
||||
return (
|
||||
<div className={'mt-2 text-xs font-normal text-[#D92D20]'}>
|
||||
{t('common.provider.validatedError')}{errorMessage}
|
||||
<div className="mt-2 text-xs font-normal text-[#D92D20]">
|
||||
{t('common.provider.validatedError')}
|
||||
{errorMessage}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user