Skip to content

Commit

Permalink
fix: wrong message
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywoola committed Dec 19, 2024
1 parent 05d73d9 commit dada9d2
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions web/app/components/tools/add-tool-modal/empty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ const Empty = () => {
return (
<div className='flex flex-col items-center'>
<div className="shrink-0 w-[163px] h-[149px] bg-cover bg-no-repeat bg-[url('~@/app/components/tools/add-tool-modal/empty.png')]"></div>
{searchParams.get('category') === 'workflow' && <>
<div className='mb-1 text-[13px] font-medium text-text-primary leading-[18px]'>{t('tools.addToolModal.emptyTitle')}</div>
<div className='text-[13px] text-text-tertiary leading-[18px]'>{t('tools.addToolModal.emptyTip')}</div>
</>}
{searchParams.get('category') !== 'workflow' && <>
<div className='mb-1 text-[13px] font-medium text-text-primary leading-[18px]'>{t('tools.addToolModal.emptyTitleCustom')}</div>
<div className='text-[13px] text-text-tertiary leading-[18px]'>{t('tools.addToolModal.emptyTipCustom')}</div>
</>}
<div className='mb-1 text-[13px] font-medium text-text-primary leading-[18px]'>
{t(`tools.addToolModal.${searchParams.get('category') === 'workflow' ? 'emptyTitle' : 'emptyTitleCustom'}`)}
</div>
<div className='text-[13px] text-text-tertiary leading-[18px]'>
{t(`tools.addToolModal.${searchParams.get('category') === 'workflow' ? 'emptyTip' : 'emptyTipCustom'}`)}
</div>
</div>
)
}
Expand Down

0 comments on commit dada9d2

Please # to comment.