feat: improve stamp selector (#400)

This commit is contained in:
Cafe137
2022-06-20 11:11:54 +02:00
committed by GitHub
parent e9666639b2
commit 0f0d72e7c5
5 changed files with 45 additions and 12 deletions
+2 -1
View File
@@ -1,4 +1,4 @@
import React, { ReactElement, useContext } from 'react'
import { ReactElement, useContext } from 'react'
import { SwarmSelect } from '../../components/SwarmSelect'
import { Context, EnrichedPostageBatch } from '../../providers/Stamps'
@@ -26,6 +26,7 @@ export function PostageStampSelector({ onSelect, defaultValue }: Props): ReactEl
options={(stamps || []).map(x => ({ label: x.batchID.slice(0, 8), value: x.batchID }))}
onChange={event => onChange(event.target.value as string)}
defaultValue={defaultValue}
placeholder="Please select a postage stamp..."
/>
)
}