Skip to content

Commit

Permalink
fix: fix config bug and btn style
Browse files Browse the repository at this point in the history
  • Loading branch information
coderxsjah committed Jun 4, 2024
1 parent 5e86208 commit 2a5f88a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/ConfigEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class OpenAPIConfigEditor extends PureComponent<Props, State> {
productConfigs.map((product, index) => (
<ProductConfigItemEditor
product={product}
key={JSON.stringify(product)}
key={`${JSON.stringify(product)}-${index}`}
addProduct={() => this.addProduct()}
remove={() => this.removeProduct(index)}
index={index}
Expand Down
4 changes: 2 additions & 2 deletions src/components/ProductConfigItemEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ const ProductConfigItemEditor = ({
return (
<div>
<InlineFieldRow>
<div className='gf-form-label' style={{ width: '32px', padding: '0 8px 0 12px'}} onClick={addProduct}>+</div>
<div className='gf-form-label' style={{ width: '32px', padding: '0 8px 0 12px'}} onClick={remove}>-</div>
<div className='gf-form-label' style={{ width: '32px', padding: '0 8px 0 12px', cursor: 'pointer'}} onClick={addProduct}>+</div>
<div className='gf-form-label' style={{ width: '32px', padding: '0 8px 0 12px', cursor: 'pointer'}} onClick={remove}>-</div>
<InlineField label="Product" labelWidth={8}>
<Select
width={33}
Expand Down

0 comments on commit 2a5f88a

Please sign in to comment.