-
Notifications
You must be signed in to change notification settings - Fork 1
Fe 6 record UI #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
cks-wls
wants to merge
28
commits into
develop
Choose a base branch
from
FE-6-record-ui
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
144cdfb
index 수정
cks-wls 42e649f
Add files via upload
cks-wls a5a2cd6
Editicon
cks-wls b0cdaaf
Update healthStatusRecordList.tsx
cks-wls e8820f7
Update healthStatusRecordList.tsx
cks-wls d62ede7
save버튼 위치 조정
cks-wls d193f51
컴포넌트로 분리
cks-wls 43b30f1
docs : healthStatus컴포넌트 파일 추가
cks-wls f947389
docs : medicalRecord 컴포넌트 파일 추가
cks-wls 7134d48
docs : disease Data 상수값분리
cks-wls d2b4ee9
docs : healthstatus 상수값분리
cks-wls e4407bc
docs : hospitalData 상수값분리
cks-wls 0614b1a
docs : medicalRecordList 상수값 분리
cks-wls 51d18d9
docs : list형태 컴포넌트화
cks-wls 2cf09f3
docs : list형태 컴포넌트화
cks-wls 1a6256a
docs : healthStatusRecord 컴포넌트파일추가
cks-wls ea955e8
docs : healthStatusRecord 컴포넌트화
cks-wls 65911c0
setting : 변수이름변경
cks-wls 8825fc7
docs : 파일이름 변경
cks-wls c1c75dc
docs : 파일이름 변경
cks-wls bc127ca
docs : 파일이름 변경으로 인한 삭제
cks-wls 2608371
docs : 파일이름 변경으로 인한 삭제
cks-wls bcbb630
docs : 파일경로변경
cks-wls 91a6148
docs : 컴포넌트 간단화
cks-wls d92317c
docs : 컴포넌트 간단화
cks-wls 21a975d
docs : 컴포넌트 간단화
cks-wls 4ec2624
fix : 오류 수정
cks-wls ac8345a
docs : 반복내용 컴포넌트화
cks-wls File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,143 @@ | ||
| import { View, Text, StyleSheet, SafeAreaView, TouchableOpacity } from 'react-native'; | ||
| import { useRouter } from 'expo-router'; | ||
| import { Ionicons } from '@expo/vector-icons'; | ||
|
|
||
| export default function MedicalRecordList() { | ||
| const router = useRouter(); | ||
|
|
||
| const diease = [ | ||
| 'diabetes,colic1', | ||
| 'diabetes,colic2', | ||
| 'diabetes,colic3', | ||
| 'diabetes,colic4', | ||
| 'diabetes,colic5', | ||
| ]; | ||
|
|
||
| const handleNavigate = (dieaseName) => { | ||
| if (dieaseName === diease[0]) { | ||
| router.push('/(tabs)/records/healthStatusRecordListFull1'); | ||
| } else if (dieaseName === diease[1]) { | ||
| router.push('/(tabs)/records/healthStatusRecordListFull2'); | ||
| } else if (dieaseName === diease[2]) { | ||
| router.push('/(tabs)/records/healthStatusRecordListFull3'); | ||
| } else if (dieaseName === diease[3]) { | ||
| router.push('/(tabs)/records/healthStatusRecordListFull4'); | ||
| } else if (dieaseName === diease[4]) { | ||
| router.push('/(tabs)/records/healthStatusRecordListFull5'); | ||
| } | ||
| }; | ||
|
|
||
| const handleNewPress = () => { | ||
| router.push('/(tabs)/records/healthStatusRecordListEdit1'); | ||
| }; | ||
|
|
||
| return ( | ||
| <SafeAreaView style={styles.container}> | ||
| <View style={styles.header}> | ||
| <TouchableOpacity | ||
| onPress={() => router.replace('/(tabs)/records')} | ||
| style={styles.backButton} | ||
| > | ||
| <Ionicons name="chevron-back" size={24} color="black" /> | ||
| </TouchableOpacity> | ||
| <Text style={styles.headerTitle}>Health Record</Text> | ||
| </View> | ||
|
|
||
| {diease.map((dieaseItem, index) => ( | ||
| <View key={index}> | ||
| <View style={styles.date}> | ||
| <Text style={styles.dateText}>2024.11.20</Text> {/* 임시 날짜 */} | ||
| </View> | ||
| <View style={styles.list}> | ||
| <TouchableOpacity | ||
| onPress={() => handleNavigate(dieaseItem)} | ||
| style={styles.listItem} | ||
| > | ||
| <Text style={styles.listText}>{dieaseItem}</Text> | ||
| <Ionicons name="chevron-forward" size={20} color="black" /> | ||
| </TouchableOpacity> | ||
| </View> | ||
| </View> | ||
| ))} | ||
|
|
||
| <TouchableOpacity onPress={handleNewPress} style={styles.fabButton}> | ||
| <Text style={styles.fabText}>+ New</Text> | ||
| </TouchableOpacity> | ||
| </SafeAreaView> | ||
| ); | ||
| } | ||
|
|
||
| const styles = StyleSheet.create({ | ||
| container: { | ||
| flex: 1, | ||
| backgroundColor: "#F5F9FC", | ||
| }, | ||
| backButton: { | ||
| left: 24, | ||
| position: "absolute", | ||
| zIndex: 1, | ||
| }, | ||
| header: { | ||
| marginTop: 16, | ||
| flexDirection: "row", | ||
| position: "relative", | ||
| }, | ||
| headerTitle: { | ||
| margin: 0, | ||
| fontSize: 20, | ||
| fontWeight: 500, | ||
| flex: 1, | ||
| color: "#000", | ||
| textAlign: "center", | ||
| left: 0, | ||
| right: 0, | ||
| }, | ||
| date: { | ||
| marginTop: 24, | ||
| marginLeft: 24, | ||
| marginBottom: 8, | ||
| }, | ||
| dateText: { | ||
| color: "#767676", | ||
| fontSize: 14, | ||
| fontWeight: 400, | ||
| }, | ||
| list: { | ||
| marginLeft: 16, | ||
| marginRight: 16, | ||
| paddingTop: 16, | ||
| paddingBottom: 16, | ||
| borderRadius: 10, | ||
| backgroundColor: "#FFF", | ||
| paddingHorizontal: 16, | ||
| }, | ||
| listItem: { | ||
| flexDirection: 'row', | ||
| justifyContent: 'space-between', | ||
| alignItems: 'center', | ||
| }, | ||
| listText: { | ||
| color: "#000", | ||
| fontSize: 16, | ||
| fontWeight: 400, | ||
| }, | ||
| fabButton: { | ||
| position: 'absolute', | ||
| bottom: 40, | ||
| right: 20, | ||
| backgroundColor: '#0097A7', | ||
| borderRadius: 24, | ||
| paddingHorizontal: 16, | ||
| paddingVertical: 12, | ||
| shadowColor: '#000', | ||
| shadowOpacity: 0.15, | ||
| shadowOffset: { width: 0, height: 3 }, | ||
| shadowRadius: 3, | ||
| elevation: 3, | ||
| }, | ||
| fabText: { | ||
| color: '#FFFFFF', | ||
| fontSize: 16, | ||
| fontWeight: '600', | ||
| }, | ||
| }); | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.