1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00
This commit is contained in:
Matthias Kretschmann 2019-04-23 13:02:47 +02:00
parent fe821f9548
commit ffb049b1c3
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 31 additions and 33 deletions

View File

@ -168,34 +168,34 @@ export default class Input extends PureComponent<InputProps, InputState> {
/>
</div>
)
default:
return (
<div className={wrapClass}>
{group ? (
<InputGroup>
<input
id={name}
className={styles.input}
onFocus={this.toggleFocus}
onBlur={this.toggleFocus}
{...this.props}
/>
{group}
</InputGroup>
) : (
<input
id={name}
className={styles.input}
onFocus={this.toggleFocus}
onBlur={this.toggleFocus}
{...this.props}
/>
)}
{type === 'search' && <SearchIcon />}
</div>
)
}
return (
<div className={wrapClass}>
{group ? (
<InputGroup>
<input
id={name}
className={styles.input}
onFocus={this.toggleFocus}
onBlur={this.toggleFocus}
{...this.props}
/>
{group}
</InputGroup>
) : (
<input
id={name}
className={styles.input}
onFocus={this.toggleFocus}
onBlur={this.toggleFocus}
{...this.props}
/>
)}
{type === 'search' && <SearchIcon />}
</div>
)
}
public render() {

View File

@ -2,7 +2,6 @@ import React from 'react'
import { Link } from 'react-router-dom'
import moment from 'moment'
import Dotdotdot from 'react-dotdotdot'
import Markdown from '../../components/atoms/Markdown'
import styles from './Asset.module.scss'
import CategoryImage from '../atoms/CategoryImage'

View File

@ -13,10 +13,7 @@ declare global {
web3: Web3
ethereum: {
enable(): void
host: string
supportsSubscriptions(): boolean
send(method: string, parameters: any[]): Promise<any[]>
sendBatch(methods: any[], moduleInstance: any): Promise<any[]>
send(payload: any, callback: any): any
}
}
}

View File

@ -22,7 +22,9 @@ export default class StepRegisterContent extends PureComponent<
public errorState = () => (
<div className={styles.message}>
Something went wrong,{' '}
<a onClick={() => this.props.tryAgain()}>try again</a>
<Button link onClick={() => this.props.tryAgain()}>
try again
</Button>
</div>
)