From e47f86bbfe347ffcd4e11862dc084c2372e4da75 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Sun, 2 Apr 2017 06:07:04 -0400 Subject: [PATCH] Add mock for reward/new action --- ui/js/lbryio.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ui/js/lbryio.js b/ui/js/lbryio.js index 7c6771aac..a8156ce75 100644 --- a/ui/js/lbryio.js +++ b/ui/js/lbryio.js @@ -24,6 +24,14 @@ const mocks = { claimed: false, }, ]; + }, + 'reward.new': ({reward_type}) => { + return { + UserID: localStorage.getItem('accessToken'), + UserWalletID: 123, + RewardType: reward_type, + RewardAmount: 50, + }; } };