fix: optional copywriting i18n

This commit is contained in:
Joel
2024-07-31 11:54:30 +08:00
parent 884e72b4f0
commit fcd6a0215d
3 changed files with 8 additions and 2 deletions

View File

@ -107,7 +107,7 @@ const Welcome: FC<IWelcomeProps> = ({
)}
{item.type === 'string' && (
<input
placeholder={`${item.name}${!item.required ? `(${t('appDebug.variableTable.optional')})` : ''}`}
placeholder={`${item.name}${!item.required ? `(${t('app.variableTable.optional')})` : ''}`}
value={inputs?.[item.key] || ''}
onChange={(e) => { setInputs({ ...inputs, [item.key]: e.target.value }) }}
className={'w-full flex-grow py-2 pl-3 pr-3 box-border rounded-lg bg-gray-50'}
@ -117,7 +117,7 @@ const Welcome: FC<IWelcomeProps> = ({
{item.type === 'paragraph' && (
<textarea
className="w-full h-[104px] flex-grow py-2 pl-3 pr-3 box-border rounded-lg bg-gray-50"
placeholder={`${item.name}${!item.required ? `(${t('appDebug.variableTable.optional')})` : ''}`}
placeholder={`${item.name}${!item.required ? `(${t('app.variableTable.optional')})` : ''}`}
value={inputs?.[item.key] || ''}
onChange={(e) => { setInputs({ ...inputs, [item.key]: e.target.value }) }}
/>