1- export const Tips = [
1+ import { config } from 'src/config'
2+
3+ const Tips = [
24 [
35 'Transaction fees can be paid in any currency but they are smaller when paid with CELO.' ,
46 'Consider keeping some CELO in your account to pay for fees. It will be used by default.' ,
@@ -17,20 +19,24 @@ export const Tips = [
1719 ] ,
1820 [
1921 'Your wallet can be imported in many places at once.' ,
20- 'For example, use your Account Key to load it into the Valora mobile app.' ,
21- ] ,
22- [
23- 'Using this wallet in a browser is only safe for small accounts or Ledger users.' ,
24- 'For large accounts, downloading the Desktop App is strongly recommended.' ,
22+ 'For example, you can import your Account Key into the Valora mobile app.' ,
2523 ] ,
2624 [
2725 'You can lock CELO to participate in Celo network elections and governance.' ,
2826 'Voting for validators that are elected will earn you free CELO rewards.' ,
2927 ] ,
3028]
3129
30+ const WebTips = [
31+ ...Tips ,
32+ [
33+ 'Using this wallet in a browser is only safe for small accounts or Ledger users.' ,
34+ 'For large accounts, downloading the Desktop App is strongly recommended.' ,
35+ ] ,
36+ ]
37+
3238export function useDailyTip ( ) {
33- // TODO save the starting date in storage so tips can be cycled through in order from the first
39+ const tips = config . isElectron ? Tips : WebTips
3440 const date = new Date ( ) . getDate ( )
35- return Tips [ date % Tips . length ]
41+ return tips [ date % tips . length ]
3642}
0 commit comments