Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sjsjmine129 committed May 29, 2024
1 parent 8cf04e4 commit fa3e8ab
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/assets/svg.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export default function Header(props) {
style={{
color: COLOR_WHITE,
fontSize: 16,
fontWeight: 'bold',
// fontWeight: 'bold',
fontFamily: 'NanumSquareRoundB',
textAlign: 'center',
}}>
{title}
Expand Down
6 changes: 3 additions & 3 deletions src/components/ListModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ const styles = StyleSheet.create({
listButton: {
// backgroundColor: 'blue',
padding: 8,
paddingHorizontal: 16,
paddingHorizontal: 0,
},
buttonText: {
fontSize: 12,
fontSize: 13,
color: COLOR_TEXT_BLACK,
fontWeight: 'normal',
},
buttonText2: {
fontSize: 12,
fontSize: 13,
color: '#A4D65E',
fontWeight: 'normal',
},
Expand Down
1 change: 1 addition & 0 deletions src/components/MapDart.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const styles = StyleSheet.create({
dart: {
padding: 3,
alignItems: 'center',
fontFamily: 'NanumSquareRoundR',
backgroundColor: COLOR_PRIMARY,
borderRadius: 8,
borderBottomLeftRadius: 0,
Expand Down
3 changes: 2 additions & 1 deletion src/screens/signup/SplashScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default function SplashScreen() {
// AsyncStorage(=디바이스에 저장하는 데이터)에 저장된 토큰을 가져온다.
const accessToken = await AsyncStorage.getItem('accessToken');
const refreshToken = await AsyncStorage.getItem('refreshToken');
const userId = await AsyncStorage.getItem('userId');

//없으면 그만
console.log('accessToken:', accessToken);
Expand All @@ -39,7 +40,7 @@ export default function SplashScreen() {
}

//토큰이 맞는지 확인 -> 헤더에 토큰 넣어서 백엔드 요청
const response = await axios.get(`${API_URL}/hello/security-test`, {
const response = await axios.get(`${API_URL}/v1/users/${userId}`, {
headers: {Authorization: `Bearer ${accessToken}`},
});
console.log('response:', response.data.data);
Expand Down

0 comments on commit fa3e8ab

Please sign in to comment.