warning 수정

This commit is contained in:
focp212@naver.com
2025-11-12 14:54:22 +09:00
parent 1efeecbec2
commit 9a6528484b

View File

@@ -19,20 +19,19 @@ export const SortTypeBox = ({
<>
<div className="sort-options">
{ options.map((value: Record<string, any>, index: number) => (
<>
{ (index > 0) &&
<span
key={ value.key + '-divider' }
className="sort-divider"
>|</span>
}
<span key={ value.key }>
<button
className={ `sort-btn ${(sortType === value.key)? 'active': ''}` }
onClick={ () => onClickToSort(value.key) }
>{ value.label }</button>
</span>
</>
<div key={ value.key }>
<button
className={ `sort-btn ${(sortType === value.key)? 'active': ''}` }
onClick={ () => onClickToSort(value.key) }
>{ value.label }</button>
{ (index < options.length - 1) &&
<span
key={ value.key + '-divider' }
className="sort-divider"
style={{ marginLeft: '10px'}}
>|</span>
}
</div>
))}
</div>
</>