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"> <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>
</> </>