mirror of
https://github.com/Instadapp/assembly.git
synced 2024-07-29 22:37:06 +00:00
add input-amount
This commit is contained in:
parent
f82f274453
commit
ee51fa7155
|
@ -50,6 +50,23 @@
|
|||
}
|
||||
"
|
||||
/>
|
||||
|
||||
<input-amount
|
||||
v-else-if="component.type === 'input-amount'"
|
||||
:key="index"
|
||||
:value="component.value"
|
||||
:token-key="
|
||||
component.tokenKey
|
||||
? component.tokenKey
|
||||
: component.token
|
||||
? component.token.key
|
||||
: 'eth'
|
||||
"
|
||||
:error="component.error"
|
||||
:placeholder="component.placeholder()"
|
||||
@input="$event => component.onInput($event)"
|
||||
/>
|
||||
|
||||
<SidebarContextHeading
|
||||
v-else-if="component.type === 'heading'"
|
||||
:key="index"
|
||||
|
|
|
@ -37,6 +37,7 @@ export interface IStrategyToken {
|
|||
|
||||
export enum StrategyComponentType {
|
||||
// INPUT = "input",
|
||||
INPUT_AMOUNT = "input-amount",
|
||||
INPUT_WITH_TOKEN = "input-with-token",
|
||||
|
||||
HEADING = "heading",
|
||||
|
@ -47,6 +48,10 @@ export enum StrategyComponentType {
|
|||
export type StrategyComponentParameterMap = {
|
||||
// [StrategyInputType.INPUT]: {};
|
||||
|
||||
[StrategyComponentType.INPUT_AMOUNT]: {
|
||||
tokenKey: string;
|
||||
};
|
||||
|
||||
[StrategyComponentType.INPUT_WITH_TOKEN]: {
|
||||
token?: IStrategyToken;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user