allow sending directly to a channel or content address (#5990)
* allow sending directly to a channel or content address
This commit is contained in:
parent
200dc66763
commit
2852138c3a
6 changed files with 340 additions and 90 deletions
ui/util
|
@ -1,14 +1,10 @@
|
|||
// @flow
|
||||
import { regexAddress } from 'lbry-redux';
|
||||
|
||||
type DraftTxValues = {
|
||||
address: string,
|
||||
// amount: number
|
||||
};
|
||||
|
||||
export const validateSendTx = (formValues: DraftTxValues) => {
|
||||
const { address } = formValues;
|
||||
const errors = {};
|
||||
export default function validateSendTx(address: string) {
|
||||
const errors = {
|
||||
address: '',
|
||||
};
|
||||
|
||||
// All we need to check is if the address is valid
|
||||
// If values are missing, users wont' be able to submit the form
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue