Random corrections and style fixes
This commit is contained in:
parent
e47f86bbfe
commit
26aba5fb04
2 changed files with 2 additions and 6 deletions
|
@ -1,8 +1,4 @@
|
|||
import React from 'react';
|
||||
import lbry from '../lbry.js';
|
||||
import {Link} from '../component/link.js';
|
||||
import {FileActions} from '../component/file-actions.js';
|
||||
import {Thumbnail, TruncatedText, CreditAmount} from '../component/common.js';
|
||||
|
||||
export const Notice = React.createClass({
|
||||
propTypes: {
|
||||
|
|
|
@ -5,7 +5,7 @@ const lbryio = {};
|
|||
const CONNECTION_STRING = 'https://apidev.lbry.tech/';
|
||||
|
||||
const mocks = {
|
||||
'reward_type.get': (name) => {
|
||||
'reward_type.get': ({name}) => {
|
||||
return {
|
||||
name: 'link_github',
|
||||
title: 'Link your GitHub account',
|
||||
|
@ -35,7 +35,7 @@ const mocks = {
|
|||
}
|
||||
};
|
||||
|
||||
lbryio.call = function(resource, action, params, method='get') {
|
||||
lbryio.call = function(resource, action, params={}, method='get') {
|
||||
return new Promise((resolve, reject) => {
|
||||
/* temp code for mocks */
|
||||
if (`${resource}.${action}` in mocks) {
|
||||
|
|
Loading…
Add table
Reference in a new issue