1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

input tweaks

This commit is contained in:
Matthias Kretschmann 2020-09-22 11:04:28 +00:00
parent 711dd38a9f
commit a1ff86083c
5 changed files with 8 additions and 3 deletions

View File

@ -104,7 +104,7 @@
}, },
"dynamic": { "dynamic": {
"title": "Dynamic", "title": "Dynamic",
"info": "Let's create a decentralized, automated market for your data set. A Datatoken for this data set, worth the entered amount of OCEAN, will be created. Additionally, you will provide liquidity into a Datatoken/OCEAN liquidity pool with Balancer.", "info": "Let's create a decentralized, automated market for your data set. A Datatoken for this data set, worth the entered amount of OCEAN, will be created. Additionally, you will provide liquidity into a OCEAN/Datatoken liquidity pool with Balancer.",
"tooltips": { "tooltips": {
"poolInfo": "Explain what is going on here...", "poolInfo": "Explain what is going on here...",
"liquidityProviderFee": "Explain liquidity provider fee...", "liquidityProviderFee": "Explain liquidity provider fee...",

View File

@ -20,7 +20,9 @@ export interface MetadataMarket extends Metadata {
} }
export interface PriceOptionsMarket extends PriceOptions { export interface PriceOptionsMarket extends PriceOptions {
// easier to keep this as number for Yup input validation
liquidityProviderFee: number liquidityProviderFee: number
// collect datatoken info for publishing
datatoken?: DataTokenOptions datatoken?: DataTokenOptions
} }

View File

@ -46,6 +46,7 @@ export default function Coin({
type="number" type="number"
readOnly={readOnly} readOnly={readOnly}
prefix={datatokenOptions?.symbol || 'DT'} prefix={datatokenOptions?.symbol || 'DT'}
min="1"
{...field} {...field}
/> />
{datatokenOptions?.symbol === 'OCEAN' && ( {datatokenOptions?.symbol === 'OCEAN' && (

View File

@ -6,9 +6,10 @@
margin-right: -2rem; margin-right: -2rem;
border-bottom: 1px solid var(--brand-grey-lighter); border-bottom: 1px solid var(--brand-grey-lighter);
margin-top: var(--spacer); margin-top: var(--spacer);
padding: var(--spacer); padding: 0 var(--spacer) calc(var(--spacer) / 2) var(--spacer);
padding-top: 0;
justify-content: center;
text-align: center;
border-bottom: 1px solid var(--brand-grey-lighter); border-bottom: 1px solid var(--brand-grey-lighter);
} }

View File

@ -32,6 +32,7 @@ export default function Fixed({
name="price.price" name="price.price"
type="number" type="number"
prefix="OCEAN" prefix="OCEAN"
min="1"
{...field} {...field}
additionalComponent={ additionalComponent={
<Conversion <Conversion