Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Tokens/CreateTokenForm.js
import React, { useState } from 'react'; | import React, { useState } from 'react'; | ||||
Lint: Code style violation: '/home/ethan/bitcoin-abc/web/cashtab/src/components/Tokens/CreateTokenForm.js' has code style… | |||||
import PropTypes from 'prop-types'; | import PropTypes from 'prop-types'; | ||||
import { AntdFormWrapper } from '@components/Common/EnhancedInputs'; | import { AntdFormWrapper } from '@components/Common/EnhancedInputs'; | ||||
import { TokenCollapse } from '@components/Common/StyledCollapse'; | import { TokenCollapse } from '@components/Common/StyledCollapse'; | ||||
import { currency } from '@components/Common/Ticker.js'; | import { currency } from '@components/Common/Ticker.js'; | ||||
import { WalletContext } from '@utils/context'; | import { WalletContext } from '@utils/context'; | ||||
import { | import { | ||||
isValidTokenName, | isValidTokenName, | ||||
isValidTokenTicker, | isValidTokenTicker, | ||||
▲ Show 20 Lines • Show All 204 Lines • ▼ Show 20 Lines | return ( | ||||
<> | <> | ||||
<TokenCollapse | <TokenCollapse | ||||
collapsible={disabled ? 'disabled' : true} | collapsible={disabled ? 'disabled' : true} | ||||
disabled={disabled} | disabled={disabled} | ||||
style={{ | style={{ | ||||
marginBottom: '24px', | marginBottom: '24px', | ||||
}} | }} | ||||
> | > | ||||
<Panel header="Create Token" key="1"> | <Panel header="Create eToken" key="1"> | ||||
<AntdFormWrapper> | <AntdFormWrapper> | ||||
<Form | <Form | ||||
size="small" | size="small" | ||||
style={{ | style={{ | ||||
width: 'auto', | width: 'auto', | ||||
}} | }} | ||||
> | > | ||||
<Form.Item | <Form.Item | ||||
▲ Show 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | return ( | ||||
</Form.Item> | </Form.Item> | ||||
</Form> | </Form> | ||||
</AntdFormWrapper> | </AntdFormWrapper> | ||||
<SmartButton | <SmartButton | ||||
onClick={() => setShowConfirmCreateToken(true)} | onClick={() => setShowConfirmCreateToken(true)} | ||||
disabled={!tokenGenesisDataIsValid} | disabled={!tokenGenesisDataIsValid} | ||||
> | > | ||||
<PlusSquareOutlined /> | <PlusSquareOutlined /> | ||||
Create Token | Create eToken | ||||
</SmartButton> | </SmartButton> | ||||
</Panel> | </Panel> | ||||
</TokenCollapse> | </TokenCollapse> | ||||
</> | </> | ||||
</> | </> | ||||
); | ); | ||||
}; | }; | ||||
Show All 22 Lines |
'/home/ethan/bitcoin-abc/web/cashtab/src/components/Tokens/CreateTokenForm.js' has code style errors.