-
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.
Browse files
Browse the repository at this point in the history
feat: piece api/#84
- Loading branch information
Showing
15 changed files
with
193 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import instance from '@api/axios'; | ||
|
||
export const fetchWeekReport = async (targetDate: string) => { | ||
const response = await instance.get(`/report/week?${targetDate}`); | ||
return response.data; | ||
}; | ||
|
||
export const fetchReportPNN = async (targetDate: string) => { | ||
const response = await instance.get(`/report/week/${targetDate}`); | ||
return response.data; | ||
}; |
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed
BIN
-16.1 MB
src/assets/images/weathered-concrete-surface-wallpaper-backdrop.jpeg
Binary file not shown.
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,26 @@ | ||
// src/components/CustomLoadingControlWrapper.tsx | ||
import React from 'react'; | ||
import { View, StyleSheet } from 'react-native'; | ||
import CustomRefreshControl from '@screens/common/CustomRefreshControl'; | ||
|
||
const CustomLoadingControlWrapper: React.FC = () => { | ||
return ( | ||
<View style={styles.container}> | ||
<CustomRefreshControl /> | ||
</View> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
height: 60, | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}, | ||
image: { | ||
width: 50, | ||
height: 50, | ||
}, | ||
}); | ||
|
||
export default CustomLoadingControlWrapper; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from 'react'; | ||
import { StyleSheet, View } from 'react-native'; | ||
|
||
import MyText from '@components/common/MyText'; | ||
import AntDesign from 'react-native-vector-icons/AntDesign'; | ||
import { fontMedium } from '@utils/Sizing'; | ||
|
||
const ReportErrorView = () => { | ||
return ( | ||
<View style={styles.container}> | ||
<View style={styles.emptyContainer}> | ||
<AntDesign name="exclamationcircleo" size={120} color="#ccc" /> | ||
<MyText style={styles.emptyText}>조각을 표시할 수 없어요.</MyText> | ||
</View> | ||
</View> | ||
); | ||
}; | ||
|
||
export default ReportErrorView; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}, | ||
emptyContainer: { | ||
flex: 1, | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}, | ||
emptyText: { | ||
marginTop: 10, | ||
fontSize: fontMedium, | ||
color: 'gray', | ||
}, | ||
}); |
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,31 @@ | ||
import React from 'react'; | ||
import { StyleSheet, View } from 'react-native'; | ||
import MyText from '@components/common/MyText'; | ||
import { fontLarge } from '@utils/Sizing'; | ||
import CustomLoadingControlWrapper from '@screens/common/CustomLoadingControlWrapper'; | ||
|
||
const ReportLoadingView = () => { | ||
return ( | ||
<View style={styles.container}> | ||
<CustomLoadingControlWrapper /> | ||
<MyText style={styles.text}> 조각을 가져오고 있어요. </MyText> | ||
</View> | ||
); | ||
}; | ||
|
||
export default ReportLoadingView; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
paddingLeft: 36, | ||
paddingRight: 36, | ||
backgroundColor: 'transparent', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}, | ||
text: { | ||
marginTop: 16, | ||
fontSize: fontLarge, | ||
}, | ||
}); |
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