Skip to content

Commit

Permalink
fix: overlength blessing words (#10818)
Browse files Browse the repository at this point in the history
* chore: update lock file

* fix: constraint blessing words length
  • Loading branch information
guanbinrui authored Sep 22, 2023
1 parent 94c1580 commit c63a0b9
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 179 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ export function RedPacketERC20Form(props: RedPacketFormProps) {
onChange={(e) => setMessage(e.target.value)}
placeholder={t.blessing_words()}
value={message}
inputProps={{
maxLength: 100,
}}
/>
</Box>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function RedpacketMessagePanel(props: RedpacketMessagePanelProps) {
<InputBase
className={classes.input}
onChange={(e) => onChange(e.target.value)}
inputProps={{ placeholder: t.best_wishes() }}
inputProps={{ maxLength: 100, placeholder: t.best_wishes() }}
value={message}
/>
</div>
Expand Down
Loading

0 comments on commit c63a0b9

Please sign in to comment.