From a28cac35b461171bcecf856f07e89a1eeebcef45 Mon Sep 17 00:00:00 2001 From: hsy <69149030+dev-redo@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:20:19 +0900 Subject: [PATCH] =?UTF-8?q?release:=20=EB=B2=84=EC=A0=84=201.0.8=20?= =?UTF-8?q?=EB=B0=B0=ED=8F=AC=20(#109)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(*): 나의 풀이 tab 문제 유형 선택 시 페이지네이션이 초기화되지 않는 이슈 해결 * release: 버전 1.0.8 업데이트 * feat(Select, newTab/profile): 나의 풀이 tab 문제 유형 select 박스의 옵션들에 푼 문제 개수를 보여주는 기능 추가 --- package.json | 2 +- src/components/select/PartTitleSelect.tsx | 9 +++++++-- src/components/select/index.tsx | 2 +- src/pages/newTab/profile/Problems.tsx | 2 +- src/pages/newTab/profile/index.tsx | 22 +++++++++++++++------- src/static/manifest.json | 2 +- src/types/profile/profile-layout.d.ts | 1 + src/types/select.d.ts | 1 + 8 files changed, 28 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index a8c77dd..69734ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prosolve", - "version": "1.0.7", + "version": "1.0.8", "main": "index.js", "pretty": "prettier --write \"src/**/*.(ts|tsx)\"", "scripts": { diff --git a/src/components/select/PartTitleSelect.tsx b/src/components/select/PartTitleSelect.tsx index 73910ec..68a1f33 100644 --- a/src/components/select/PartTitleSelect.tsx +++ b/src/components/select/PartTitleSelect.tsx @@ -6,16 +6,21 @@ import { problemTitleOption } from '@src/store/select'; import { PartTitleSelectProps } from '@src/types/select'; import '@src/styles/font.css'; -const PartTitleSelect = ({ partTitleList }: PartTitleSelectProps) => { +const PartTitleSelect = ({ partTitleList, onChangePageIdx }: PartTitleSelectProps) => { const [isOpen, setIsOpen] = React.useState(false); const [selected, setSelected] = useRecoilState(problemTitleOption); + const onChangePartTitle = (option: string) => { + onChangePageIdx(0); + setSelected(option); + }; + return (