calendar 수정

This commit is contained in:
focp212@naver.com
2025-11-03 11:20:31 +09:00
parent 0b3c326768
commit f2b09cd2f8
7 changed files with 191 additions and 29 deletions

View File

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