UI for memos fields.
This commit is contained in:
@@ -338,6 +338,13 @@ export const TxUI: FC<UIProps> = ({ state: txState, setState, resetState, estima
|
|||||||
<Flex column fluid>
|
<Flex column fluid>
|
||||||
{Object.entries(memos).map(([id, memo]) => (
|
{Object.entries(memos).map(([id, memo]) => (
|
||||||
<Flex column key={id} css={{ mb: '$2' }}>
|
<Flex column key={id} css={{ mb: '$2' }}>
|
||||||
|
<Flex
|
||||||
|
row
|
||||||
|
css={{
|
||||||
|
flexWrap: 'wrap',
|
||||||
|
width: '100%',
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Input
|
<Input
|
||||||
placeholder="Memo type"
|
placeholder="Memo type"
|
||||||
value={memo.type}
|
value={memo.type}
|
||||||
@@ -352,6 +359,7 @@ export const TxUI: FC<UIProps> = ({ state: txState, setState, resetState, estima
|
|||||||
/>
|
/>
|
||||||
<Input
|
<Input
|
||||||
placeholder="Memo data"
|
placeholder="Memo data"
|
||||||
|
css={{ mx: '$2' }}
|
||||||
value={memo.data}
|
value={memo.data}
|
||||||
onChange={e => {
|
onChange={e => {
|
||||||
setState({
|
setState({
|
||||||
@@ -375,6 +383,7 @@ export const TxUI: FC<UIProps> = ({ state: txState, setState, resetState, estima
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
|
css={{ ml: '$2' }}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const { [id]: _, ...rest } = memos
|
const { [id]: _, ...rest } = memos
|
||||||
setState({ memos: rest })
|
setState({ memos: rest })
|
||||||
@@ -384,6 +393,7 @@ export const TxUI: FC<UIProps> = ({ state: txState, setState, resetState, estima
|
|||||||
<Trash weight="regular" size="16px" />
|
<Trash weight="regular" size="16px" />
|
||||||
</Button>
|
</Button>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
</Flex>
|
||||||
))}
|
))}
|
||||||
<Button
|
<Button
|
||||||
outline
|
outline
|
||||||
|
|||||||
Reference in New Issue
Block a user