fix values
This commit is contained in:
@@ -95,9 +95,10 @@ const AttributesModal: FC<AttributesModalProps> = ({
|
||||
/>
|
||||
</div>
|
||||
|
||||
{newAttribute.type === 'select' && (
|
||||
<div className="space-y-3">
|
||||
<label className="text-sm font-medium">مقادیر قابل انتخاب</label>
|
||||
<label className="text-sm font-medium">
|
||||
مقادیر قابل انتخاب {newAttribute.type === 'select' ? '(اجباری)' : '(اختیاری)'}
|
||||
</label>
|
||||
<div className="flex gap-2 items-center">
|
||||
<Input
|
||||
placeholder="مقدار جدید اضافه کنید"
|
||||
@@ -108,7 +109,6 @@ const AttributesModal: FC<AttributesModalProps> = ({
|
||||
<Button
|
||||
onClick={handleAddValue}
|
||||
variant="outline"
|
||||
// size="sm"
|
||||
disabled={!newValue.trim()}
|
||||
className='w-fit mt-1'
|
||||
>
|
||||
@@ -135,7 +135,6 @@ const AttributesModal: FC<AttributesModalProps> = ({
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="flex gap-3 pt-4 border-t border-border">
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user