warning 수정
This commit is contained in:
@@ -19,20 +19,19 @@ export const SortTypeBox = ({
|
|||||||
<>
|
<>
|
||||||
<div className="sort-options">
|
<div className="sort-options">
|
||||||
{ options.map((value: Record<string, any>, index: number) => (
|
{ options.map((value: Record<string, any>, index: number) => (
|
||||||
<>
|
<div key={ value.key }>
|
||||||
{ (index > 0) &&
|
<button
|
||||||
<span
|
className={ `sort-btn ${(sortType === value.key)? 'active': ''}` }
|
||||||
key={ value.key + '-divider' }
|
onClick={ () => onClickToSort(value.key) }
|
||||||
className="sort-divider"
|
>{ value.label }</button>
|
||||||
>|</span>
|
{ (index < options.length - 1) &&
|
||||||
}
|
<span
|
||||||
<span key={ value.key }>
|
key={ value.key + '-divider' }
|
||||||
<button
|
className="sort-divider"
|
||||||
className={ `sort-btn ${(sortType === value.key)? 'active': ''}` }
|
style={{ marginLeft: '10px'}}
|
||||||
onClick={ () => onClickToSort(value.key) }
|
>|</span>
|
||||||
>{ value.label }</button>
|
}
|
||||||
</span>
|
</div>
|
||||||
</>
|
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user