Skip to content

Commit

Permalink
Rewards: Imported from brave-ui: Adding notification type for tips pr…
Browse files Browse the repository at this point in the history
…ocessed
  • Loading branch information
ryanml authored and NejcZdovc committed Sep 19, 2019
1 parent 0fdfd7e commit 230d366
Showing 1 changed file with 5 additions and 1 deletion.
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('contributionTips')
break
default:
typeText = ''
break
Expand Down

0 comments on commit 230d366

Please sign in to comment.