Skip to content

Commit 31e9637

Browse files
committed
add: holiday image
1 parent b779dcc commit 31e9637

File tree

4 files changed

+38
-20
lines changed

4 files changed

+38
-20
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@
7474
"@ethersproject/wallet": "^5.7.0",
7575
"@expo/react-native-action-sheet": "^3.9.0",
7676
"@fingerprintjs/fingerprintjs-pro": "^3.8.1",
77-
"@gooddollar/good-design": "0.4.1-beta.ee30c9a4",
77+
"@gooddollar/good-design": "0.4.1-beta.5d99a18f",
7878
"@gooddollar/goodcontracts": "^2.6.2",
7979
"@gooddollar/goodprotocol": "^2.0.24",
8080
"@gooddollar/react-native-facetec": "^1.0.46",
8181
"@gooddollar/react-native-side-menu": "^2.0.2",
82-
"@gooddollar/web3sdk-v2": "0.4.1-beta.ee30c9a4",
82+
"@gooddollar/web3sdk-v2": "0.4.1-beta.5d99a18f",
8383
"@hcaptcha/react-hcaptcha": "^1.6.0",
8484
"@indexeddbshim/indexeddbshim": "^6.5.0",
8585
"@lingui/react": "^3.13.0",

src/assets/Claim/claim-footer-celebration.svg

Lines changed: 9 additions & 0 deletions
Loading

src/components/dashboard/Claim.jsx

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import AsyncStorage from '../../lib/utils/asyncStorage'
99
import { retry } from '../../lib/utils/async'
1010

1111
import ClaimSvg from '../../assets/Claim/claim-footer.svg'
12+
import ClaimCelebration from '../../assets/Claim/claim-footer-celebration.svg'
1213

1314
import { GoodWalletContext, useUserStorage, useWallet, useWalletData } from '../../lib/wallet/GoodWalletProvider'
1415
import logger from '../../lib/logger/js-logger'
@@ -230,6 +231,8 @@ const Claim = props => {
230231
const { appState } = useAppState()
231232
const userStorage = useUserStorage()
232233
const { userProperties } = userStorage || {}
234+
const holiday = moment().format('MM-DD')
235+
const isHoliday = holiday >= '12-24' || holiday <= '01-01'
233236

234237
const [dailyUbi, setDailyUbi] = useState((entitlement && parseInt(decimalsEntitlement)) || 0)
235238
const { isValid } = screenState
@@ -737,12 +740,18 @@ const Claim = props => {
737740
</Section.Stack>
738741
)}
739742
<Section.Stack style={styles.footerWrapper}>
740-
<ClaimSvg
741-
height={getDesignRelativeHeight(85, false)}
742-
width={getMaxDeviceWidth()}
743-
style={styles.footerImage}
744-
viewBox="0 0 360.002 85"
745-
/>
743+
{isHoliday ? (
744+
<View style={{ width: '100%' }}>
745+
<ClaimCelebration style={{ width: '100%', height: 230, objectFit: 'contain' }} />
746+
</View>
747+
) : (
748+
<ClaimSvg
749+
height={getDesignRelativeHeight(85, false)}
750+
width={getMaxDeviceWidth()}
751+
style={styles.footerImage}
752+
viewBox="0 0 360.002 85"
753+
/>
754+
)}
746755
</Section.Stack>
747756
</WrapperClaim>
748757
)

yarn.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ __metadata:
328328
languageName: node
329329
linkType: hard
330330

331-
"@aws-sdk/client-s3@npm:^3.550.0":
331+
"@aws-sdk/client-s3@npm:3.572.0":
332332
version: 3.572.0
333333
resolution: "@aws-sdk/client-s3@npm:3.572.0"
334334
dependencies:
@@ -6648,9 +6648,9 @@ __metadata:
66486648
languageName: node
66496649
linkType: hard
66506650

6651-
"@gooddollar/good-design@npm:0.4.1-beta.ee30c9a4":
6652-
version: 0.4.1-beta.ee30c9a4
6653-
resolution: "@gooddollar/good-design@npm:0.4.1-beta.ee30c9a4"
6651+
"@gooddollar/good-design@npm:0.4.1-beta.5d99a18f":
6652+
version: 0.4.1-beta.5d99a18f
6653+
resolution: "@gooddollar/good-design@npm:0.4.1-beta.5d99a18f"
66546654
dependencies:
66556655
"@babel/core": ^7.18.10
66566656
"@babel/runtime": ^7.18.9
@@ -6693,7 +6693,7 @@ __metadata:
66936693
react-use-promise: ^0.5.0
66946694
react-use-wizard: ^2.3.0
66956695
require-from-string: ^2.0.2
6696-
checksum: 3b0353f4d0a6bc68842b3c660951d4bf980774bc67ac657eaba49bb0f0b2aea4eb8df8412f4fe1ebacf307bf679bb6425d4a555784eeb49b372bf04f46551ad3
6696+
checksum: c154e39e0055976259c05c0e3b874e3deef86aa0492941c97acb59731d76fced8f2fd4ec86695077d4515a94caf07b89e947afb5cca8a00a3a558d74e73d67b3
66976697
languageName: node
66986698
linkType: hard
66996699

@@ -6752,12 +6752,12 @@ __metadata:
67526752
"@ethersproject/wallet": ^5.7.0
67536753
"@expo/react-native-action-sheet": ^3.9.0
67546754
"@fingerprintjs/fingerprintjs-pro": ^3.8.1
6755-
"@gooddollar/good-design": 0.4.1-beta.ee30c9a4
6755+
"@gooddollar/good-design": 0.4.1-beta.5d99a18f
67566756
"@gooddollar/goodcontracts": ^2.6.2
67576757
"@gooddollar/goodprotocol": ^2.0.24
67586758
"@gooddollar/react-native-facetec": ^1.0.46
67596759
"@gooddollar/react-native-side-menu": ^2.0.2
6760-
"@gooddollar/web3sdk-v2": 0.4.1-beta.ee30c9a4
6760+
"@gooddollar/web3sdk-v2": 0.4.1-beta.5d99a18f
67616761
"@hcaptcha/react-hcaptcha": ^1.6.0
67626762
"@indexeddbshim/indexeddbshim": ^6.5.0
67636763
"@lingui/cli": ^3.13.0
@@ -7061,13 +7061,13 @@ __metadata:
70617061
languageName: node
70627062
linkType: hard
70637063

7064-
"@gooddollar/web3sdk-v2@npm:0.4.1-beta.ee30c9a4":
7065-
version: 0.4.1-beta.ee30c9a4
7066-
resolution: "@gooddollar/web3sdk-v2@npm:0.4.1-beta.ee30c9a4"
7064+
"@gooddollar/web3sdk-v2@npm:0.4.1-beta.5d99a18f":
7065+
version: 0.4.1-beta.5d99a18f
7066+
resolution: "@gooddollar/web3sdk-v2@npm:0.4.1-beta.5d99a18f"
70677067
dependencies:
70687068
"@amplitude/analytics-browser": ^1.6.4
70697069
"@amplitude/analytics-react-native": ^0.7.0
7070-
"@aws-sdk/client-s3": ^3.550.0
7070+
"@aws-sdk/client-s3": 3.572.0
70717071
"@ceramicnetwork/http-client": ^2.32.0
70727072
"@ceramicnetwork/stream-tile": ^2.31.0
70737073
"@gooddollar/bridge-app": ^1.5.0
@@ -7114,7 +7114,7 @@ __metadata:
71147114
"@usedapp/core": "*"
71157115
react-native: "*"
71167116
react-native-web: "*"
7117-
checksum: 949276cbc9974be40d97e07840aac8d7a610485db5532e1c55e6a2c35477d1c91791d770218f1b1a9a411bd9eef45efa08ec853e9b3e5980265e1fa1abe837b8
7117+
checksum: e9aa29d532d0ea04fc593ee48e0da9b5cf24b66aad1794e51b208096358b161b1750d1545953b6bbb8c9db128e84f7bb783f9c75df0149dcc851b865df582b3e
71187118
languageName: node
71197119
linkType: hard
71207120

0 commit comments

Comments
 (0)