Skip to content

Commit 1d67cfe

Browse files
committed
re-layout
1 parent db0d6ea commit 1d67cfe

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Diff for: src/view/swap/swapPrice/index.tsx

+4-5
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,14 @@ const SwapPrice = () => {
112112
bordered={false}
113113
style={{
114114
textAlign: 'right',
115-
fontSize: 20,
115+
fontSize: 24,
116116
padding: 0,
117117
}}
118118
placeholder="New Price"
119119
value={price}
120-
onChange={(e: ChangeEvent<HTMLInputElement>) => {
121-
const value = e.target.value
122-
setPrice(value)
123-
}}
120+
onChange={(e: ChangeEvent<HTMLInputElement>) =>
121+
setPrice(e.target.value || '')
122+
}
124123
/>
125124
</Col>
126125
<Col span={24}>

0 commit comments

Comments
 (0)