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

Adding notification type for tips being processed #429

Merged
merged 1 commit into from
Mar 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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('contributionTips')
break
default:
typeText = ''
break
Expand Down
1 change: 1 addition & 0 deletions stories/assets/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const locale: Record<string, string> = {
contribute: 'Contribute',
contributeAllocation: 'Auto-Contribute Allocation',
contributeTooltip: 'Auto-Contribute Settings',
contributionTips: 'Contributions & Tips',
copy: 'Copy',
currentDonation: 'You’re currently donating {{currentDonation}} BAT to this site every month.',
braveRewardsCreatingText: 'Creating wallet',
Expand Down