Commit 81d3dc08 by QuentinHsu

perf(model-pricing): reduce duplicate model name display

parent 5681c92b
...@@ -471,7 +471,6 @@ export const ModelPricingEditorPanel = forwardRef< ...@@ -471,7 +471,6 @@ export const ModelPricingEditorPanel = forwardRef<
[form, validatePricingValues, buildSubmitData] [form, validatePricingValues, buildSubmitData]
) )
const activeName = watchedValues.name || editData?.name || t('New model')
const showActions = Boolean(onSave) const showActions = Boolean(onSave)
return ( return (
...@@ -487,9 +486,6 @@ export const ModelPricingEditorPanel = forwardRef< ...@@ -487,9 +486,6 @@ export const ModelPricingEditorPanel = forwardRef<
<h3 className='truncate text-base font-medium'> <h3 className='truncate text-base font-medium'>
{isEditMode ? t('Edit model pricing') : t('Add model pricing')} {isEditMode ? t('Edit model pricing') : t('Add model pricing')}
</h3> </h3>
<p className='text-muted-foreground truncate text-sm'>
{activeName}
</p>
</div> </div>
</div> </div>
</div> </div>
...@@ -656,9 +652,6 @@ export const ModelPricingEditorPanel = forwardRef< ...@@ -656,9 +652,6 @@ export const ModelPricingEditorPanel = forwardRef<
<aside className='bg-muted/20 sticky top-0 rounded-lg border'> <aside className='bg-muted/20 sticky top-0 rounded-lg border'>
<div className='border-b px-3 py-2'> <div className='border-b px-3 py-2'>
<div className='text-sm font-medium'>{t('Preview')}</div> <div className='text-sm font-medium'>{t('Preview')}</div>
<div className='text-muted-foreground text-xs'>
{activeName}
</div>
</div> </div>
<div className='divide-y'> <div className='divide-y'>
{previewRows.map((row) => ( {previewRows.map((row) => (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment