1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-07-01 06:11:43 +02: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": {
"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": {
"poolInfo": "Explain what is going on here...",
"liquidityProviderFee": "Explain liquidity provider fee...",

View File

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

View File

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

View File

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

View File

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