Created
July 1, 2018 15:10
-
-
Save kamescg/4ec0444747f8a26b26d5851b29c3378c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ------------------------- External Dependencies -------------------------- */ | |
import React from 'react' | |
import { Field } from 'redux-form' | |
/* ------------------------- Internal Dependencies -------------------------- */ | |
// files | |
// atoms | |
import StyleFieldDefault from 'static/style/StyleFieldDefault' | |
import Box from 'atoms/Box' | |
import Flex from 'atoms/Flex' | |
import Button from 'atoms/Button' | |
import Heading from 'atoms/Heading' | |
import Paragraph from 'atoms/Paragraph' | |
import Span from 'atoms/Span' | |
import Form from 'molecules/Form' | |
import ReduxField from 'organisms/ReduxField' | |
import ens from 'logic/forms/normalize/ens' | |
/* ---------------------------- Form Component ------------------------------ */ | |
export default ({ handleSubmit, isSubmitting, styled, ...props}) => | |
<Box w={1}> | |
<Flex | |
direction='column' | |
justify='center' | |
ta='center' | |
w={1} | |
> | |
<Heading level={[3]} f={[5]} fw='300' mr={15} > | |
Discover Blocks | |
</Heading> | |
<Paragraph f={[1]}> | |
Scan Ethereum Blocks to locate ENS activity | |
</Paragraph> | |
<Box h={100} ofy='scroll' > | |
{ | |
!(props.transactions) ? null :props.transactions.map(i=> | |
<Heading level={[6]} f={[1]} key={i} > | |
{i} | |
</Heading> ) | |
} | |
</Box> | |
</Flex> | |
<Form {...styled} | |
w={1}> | |
<Flex align='center' justify='center' mh={50} > | |
{ | |
(!props.data && props.status) ? | |
<Heading level={[3]} f={[3]} ta='center' fw='300' > | |
Unable To Locate Wallet | |
</Heading> | |
:null | |
} | |
</Flex> | |
<Heading level={[3]} f={[3,4]} ta='center' my={20} > | |
Searh Blocks to find <Span fw='300'>latest ENS Activity.</Span> | |
</Heading> | |
<Box > | |
<Field name="ethBlockNumber" | |
placeholder="Block Number" | |
component={ReduxField} type="text" | |
{...StyleFieldDefault} h={50} | |
normalize={ens} | |
/> | |
<Field name="countBackwards" | |
placeholder="Scan Count (Reverse) " | |
component={ReduxField} type="text" | |
{...StyleFieldDefault} h={50} | |
normalize={ens} | |
/> | |
</Box> | |
<Box mt={10} > | |
<Button type="submit" onClick={handleSubmit} gradient='cherry'w={1} py={20} >Locate Address</Button> | |
</Box> | |
</Form> | |
</Box> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment