Update UI for configure deployment step
This commit is contained in:
parent
5fe04dd691
commit
a9e69afe08
@ -105,24 +105,27 @@ const Configure = () => {
|
|||||||
<Heading as="h4" className="md:text-lg font-medium">
|
<Heading as="h4" className="md:text-lg font-medium">
|
||||||
Configure deployment
|
Configure deployment
|
||||||
</Heading>
|
</Heading>
|
||||||
|
<Heading as="h5" className="text-sm font-sans text-elements-low-em">
|
||||||
|
The app can be deployed by setting the deployer LRN for a single deployment or by creating a deployer auction for multiple deployments
|
||||||
|
</Heading>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form onSubmit={handleSubmit(onSubmit)}>
|
<form onSubmit={handleSubmit(onSubmit)}>
|
||||||
<div className="flex flex-col gap-4 lg:gap-7 w-full">
|
<div className="flex flex-col gap-4 lg:gap-7 w-full">
|
||||||
<div className="flex flex-col justify-start gap-3">
|
<div className="flex flex-col justify-start gap-3">
|
||||||
<span className="text-sm text-elements-high-em">Choose an option</span>
|
|
||||||
<Controller
|
<Controller
|
||||||
name="option"
|
name="option"
|
||||||
control={control}
|
control={control}
|
||||||
render={({ field: { value, onChange } }) => (
|
render={({ field: { value, onChange } }) => (
|
||||||
<Select
|
<Select
|
||||||
value={{ value } as SelectOption}
|
label='Configuration Options'
|
||||||
|
value={{ value: value || 'LRN', label: value === 'Auction' ? 'Create Auction' : 'Deployer LRN' } as SelectOption}
|
||||||
onChange={(value) =>
|
onChange={(value) =>
|
||||||
onChange((value as SelectOption).value)
|
onChange((value as SelectOption).value)
|
||||||
}
|
}
|
||||||
options={[
|
options={[
|
||||||
{ value: 'LRN', label: 'Set LRN' },
|
{ value: 'LRN', label: 'Deployer LRN' },
|
||||||
{ value: 'Auction', label: 'Create Auction' },
|
{ value: 'Auction', label: 'Create Auction' },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
@ -132,7 +135,10 @@ const Configure = () => {
|
|||||||
|
|
||||||
{selectedOption === 'LRN' && (
|
{selectedOption === 'LRN' && (
|
||||||
<div className="flex flex-col justify-start gap-3">
|
<div className="flex flex-col justify-start gap-3">
|
||||||
<span className="text-sm text-elements-high-em">Enter LRN</span>
|
<Heading as="h5" className="text-sm font-sans text-elements-low-em">
|
||||||
|
The app will be deployed by the configured deployer
|
||||||
|
</Heading>
|
||||||
|
<span className="text-sm text-elements-high-em">Enter LRN for deployer</span>
|
||||||
<Controller
|
<Controller
|
||||||
name="lrn"
|
name="lrn"
|
||||||
control={control}
|
control={control}
|
||||||
@ -146,7 +152,10 @@ const Configure = () => {
|
|||||||
{selectedOption === 'Auction' && (
|
{selectedOption === 'Auction' && (
|
||||||
<>
|
<>
|
||||||
<div className="flex flex-col justify-start gap-3">
|
<div className="flex flex-col justify-start gap-3">
|
||||||
<span className="text-sm text-elements-high-em">Num Providers</span>
|
<Heading as="h5" className="text-sm font-sans text-elements-low-em">
|
||||||
|
Set the number of deployers and maximum price for each deployment
|
||||||
|
</Heading>
|
||||||
|
<span className="text-sm text-elements-high-em">Number of Deployers</span>
|
||||||
<Controller
|
<Controller
|
||||||
name="numProviders"
|
name="numProviders"
|
||||||
control={control}
|
control={control}
|
||||||
@ -156,7 +165,7 @@ const Configure = () => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col justify-start gap-3">
|
<div className="flex flex-col justify-start gap-3">
|
||||||
<span className="text-sm text-elements-high-em">Max Price</span>
|
<span className="text-sm text-elements-high-em">Maximum Price (alnt)</span>
|
||||||
<Controller
|
<Controller
|
||||||
name="maxPrice"
|
name="maxPrice"
|
||||||
control={control}
|
control={control}
|
||||||
|
Loading…
Reference in New Issue
Block a user