This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor(types/profile): profile tab에서 사용되는 타입들을 각 파일마다 분리 * feat(*): 나의 풀이 Tab 문제 유형 select 기능 추가
- Loading branch information
Showing
16 changed files
with
326 additions
and
217 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,23 @@ | ||
import React from 'react'; | ||
import { useRecoilState } from 'recoil'; | ||
import Select from '.'; | ||
import CheckOption from './CheckOption'; | ||
import { problemTitleOption } from '@src/store/select'; | ||
import { PartTitleSelectProps } from '@src/types/select'; | ||
import '@src/styles/font.css'; | ||
|
||
const PartTitleSelect = ({ partTitleList }: PartTitleSelectProps) => { | ||
const [isOpen, setIsOpen] = React.useState(false); | ||
const [selected, setSelected] = useRecoilState(problemTitleOption); | ||
|
||
return ( | ||
<Select | ||
isOpen={isOpen} | ||
trigger={<CheckOption isOpen={isOpen} value={selected} onModalChange={setIsOpen} />} | ||
options={partTitleList} | ||
onChangeDropdown={setSelected} | ||
/> | ||
); | ||
}; | ||
|
||
export default PartTitleSelect; |
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.