-
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.
[expo] add elineupmall purchase history screen.
**Summary** we need a clear incentive to upload purchase history to our server so we provide a view to review uploaded purchase history. **Test** - expo **Issue** - #176
- Loading branch information
Showing
27 changed files
with
2,035 additions
and
139 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Icon } from '@rneui/themed'; | ||
import { View } from 'react-native'; | ||
|
||
export type NoImageProps = { | ||
style?: React.ComponentProps<typeof View>['style']; | ||
width: number; | ||
height: number; | ||
}; | ||
|
||
export default function NoImage({ style, width, height }: NoImageProps) { | ||
return ( | ||
<View | ||
style={[ | ||
style, | ||
{ | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
width, | ||
height | ||
} | ||
]} | ||
> | ||
<Icon type="material-community" name="image-off-outline" size={width / 2} /> | ||
</View> | ||
); | ||
} |
14 changes: 14 additions & 0 deletions
14
expo/features/elineupmall/ElineupMallPurchaseHistoryScreen.tsx
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,14 @@ | ||
import { defineScreen, useScreenTitle } from '@hpapp/features/common/stack'; | ||
import { t } from '@hpapp/system/i18n'; | ||
|
||
import ElineupMallPurchaseHistoryList from './internals/ElineupMallPurchaseHistoryList'; | ||
|
||
export type UPFCWebViewScreenProps = { | ||
login?: boolean; | ||
uri: string; | ||
}; | ||
|
||
export default defineScreen('/elineupmall/history/', function ElineupMallPurchaseHistoryScreen() { | ||
useScreenTitle(t('Elineup Mall Purchase History')); | ||
return <ElineupMallPurchaseHistoryList />; | ||
}); |
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
Oops, something went wrong.