Skip to content

Commit 3fcbf5d

Browse files
committed
fixed addSticker
1 parent 79965b0 commit 3fcbf5d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/sticker.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,14 @@ export default class StickerCard extends React.Component<CardProps, CardState> {
114114
description: 'this sticker has already been added'
115115
})
116116
} else if (parsedInput.url) {
117-
const sticker: StickerProps = { name: parsedInput.name, url: parsedInput.url }
117+
const sticker: Sticker = { name: parsedInput.name, url: parsedInput.url }
118+
this.urlInput.current?.setState({ value: '' })
118119
this.setState({ stickers: this.state.stickers.concat(sticker) })
119120
this.saveSticker(this.props.sender, sticker)
121+
notification['info']({
122+
message: 'addSticker',
123+
description: `sticker ${sticker.name} has been added`
124+
})
120125
}
121126
}
122127
}

0 commit comments

Comments
 (0)