Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Adding notification type for tips processed
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanml committed Mar 14, 2019
1 parent c5ebe17 commit a8f4ada
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/features/rewards/walletWrapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export interface ActionWallet {
action: () => void
}

export type NotificationType = 'ads' | 'backupWallet' | 'contribute' | 'grant' | 'insufficientFunds' | 'error' | ''
export type NotificationType = 'ads' | 'backupWallet' | 'contribute' | 'grant' | 'insufficientFunds' | 'tipsProcessed' | 'error' | ''

export interface Notification {
id: string
Expand Down Expand Up @@ -315,6 +315,7 @@ export default class WalletWrapper extends React.PureComponent<Props, State> {
icon = megaphoneIconUrl
break
case 'contribute':
case 'tipsProcessed':
icon = loveIconUrl
break
case 'grant':
Expand Down Expand Up @@ -356,6 +357,9 @@ export default class WalletWrapper extends React.PureComponent<Props, State> {
case 'insufficientFunds':
typeText = getLocale('insufficientFunds')
break
case 'tipsProcessed':
typeText = getLocale('donationTips')
break
default:
typeText = ''
break
Expand Down

0 comments on commit a8f4ada

Please sign in to comment.