-
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.
[SKP-143-apple-login-reissue] 애플로그인 수정 및 탈퇴 (#31)
- Loading branch information
Showing
44 changed files
with
908 additions
and
51 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import {StyleSheet} from 'react-native'; | ||
import {theme} from '../../styles'; | ||
import {flexBox} from '../../styles/common'; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
paddingTop: 100, | ||
backgroundColor: theme.palette.white, | ||
}, | ||
loadingContainer: {}, | ||
profileSection: { | ||
...flexBox('row', 'flex-start'), | ||
paddingLeft: 20, | ||
paddingBottom: 20, | ||
}, | ||
profileTextContainer: { | ||
marginLeft: 15, | ||
gap: 5, | ||
}, | ||
name: { | ||
fontSize: 18, | ||
fontWeight: 'bold', | ||
}, | ||
emailContainer: { | ||
...flexBox('row', 'center'), | ||
}, | ||
email: { | ||
fontSize: 14, | ||
color: theme.palette.gray5, | ||
marginRight: 5, | ||
}, | ||
appleIcon: { | ||
marginLeft: 5, | ||
}, | ||
}); | ||
|
||
export default styles; |
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,29 @@ | ||
import React from 'react'; | ||
import {View, Text} from 'react-native'; | ||
import {IcApple, IcProfile} from '../../assets/icon'; | ||
import styles from './Profile.style'; | ||
|
||
type ProfileProps = { | ||
userInfo: { | ||
name: string; | ||
email: string; | ||
provider: string; | ||
}; | ||
}; | ||
|
||
export default function Profile({userInfo}: ProfileProps) { | ||
return ( | ||
<View style={styles.profileSection}> | ||
<IcProfile width={60} height={60} /> | ||
<View style={styles.profileTextContainer}> | ||
<Text style={styles.name}>{userInfo.name}</Text> | ||
<View style={styles.emailContainer}> | ||
<Text style={styles.email}>{userInfo.email}</Text> | ||
{userInfo.provider === 'APPLE' && ( | ||
<IcApple width={18} height={18} style={styles.appleIcon} /> | ||
)} | ||
</View> | ||
</View> | ||
</View> | ||
); | ||
} |
Oops, something went wrong.