-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat-46] 선수 정보에 시너지 반영되는 기능 추가 완료 (#47)
* Refactor: 선수 추가 버프 계산 함수 분리 * Feat: 라인업에 존재하는 선수라면 선수 간략 정보에 버프 적용 스텟이 표시되도록 구현 * Feat: 라인업에 존재하는 선수라면 선수 상세 정보에 버프 적용 스텟이 표시되도록 구현 * Design: 테블릿 이하 크기에서 오버롤 필터 디자인 변경 * Feat: 버프 적용 필터 기능 구현 * Feat: 메뉴 창에 시너지 설정 추가 * Design: 모바일 화면에서 양 옆 여백 추가 * Chore: require에서 fetch로 데이터 불러오도록 변경 * Fix: 엔트리 페이지 아닌 곳에서 버프적용 필터가 표시되는 문제 수정 * Design: 투수 구종 등급 가시성 증가 * Docs: 1.6.2 업데이트 내역 추가
- Loading branch information
Showing
16 changed files
with
291 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
'use client'; | ||
|
||
import { usePathname } from 'next/navigation'; | ||
import classNames from 'classnames'; | ||
import { useShallow } from 'zustand/react/shallow'; | ||
|
||
import useCommonStore from '@/app/stores/common'; | ||
|
||
export default function BuffFilter() { | ||
const [isBuffActive, setIsBuffActive] = useCommonStore( | ||
useShallow((state) => [state.isBuffActive, state.setIsBuffActive]) | ||
); | ||
const pathname = usePathname(); | ||
|
||
const onClick = () => { | ||
setIsBuffActive(); | ||
}; | ||
|
||
return ( | ||
pathname.startsWith('/entry/') && ( | ||
<button | ||
className='mr-15 w-50 break-all border-r-1 border-r-slate-200/20 pr-18 laptop:h-30 laptop:w-auto' | ||
onClick={onClick} | ||
> | ||
<span | ||
className={classNames('font-bold', { | ||
'text-[#F98A58]': isBuffActive, | ||
'text-slate-400': !isBuffActive, | ||
})} | ||
> | ||
버프 적용 | ||
</span> | ||
</button> | ||
) | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.