Skip to content

Commit

Permalink
sdp-tech#77 feat: replace dropdown component
Browse files Browse the repository at this point in the history
  • Loading branch information
eujin-shin committed Jun 22, 2024
1 parent 950c9d6 commit 42bf326
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/common/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export default function Dropdown({
style={{
position: 'relative',
height: ITEM_HEIGHT + 4,
backgroundColor: 'red',
marginVertical: 8,
zIndex: index,
}}>
Expand Down Expand Up @@ -99,7 +98,7 @@ const Styles = StyleSheet.create({
position: 'absolute',
alignSelf: 'center',
borderWidth: 2,
borderRadius: 8,
borderRadius: 5,
borderColor: BLACK2,
backgroundColor: 'white',
},
Expand Down
11 changes: 9 additions & 2 deletions src/components/Auth/Reformer/CareerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,14 @@ export default function CareerModal({
</View>
<View style={{ zIndex: 1 }}>
<Body16B>분류</Body16B>
<SelectBox
<Dropdown
title="선택하기"
width="100%"
value={form.career[index].type}
items={statusList}
setValue={handleTypeChange}
/>
{/* <SelectBox
value={form.career[index].type}
onPress={() => {
setDropdown(prev => {
Expand All @@ -343,7 +350,7 @@ export default function CareerModal({
top: 80,
}}
/>
)}
)} */}
</View>
{detailSection()}
<View style={{ marginVertical: 10 }}>
Expand Down

0 comments on commit 42bf326

Please sign in to comment.