Skip to content

Commit

Permalink
fix(component): move react key prop to correct place (#1528)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrious authored May 18, 2022
1 parent a846663 commit 61d2510
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ export const PresetsModal: React.FC<PresetsModalProps> = ({
onCancel={onClose}
>
{images.map(({ src, i18nKey }) => (
<div className="presets-modal-item">
<div key={i18nKey} className="presets-modal-item">
<button
key={i18nKey}
className="presets-modal-btn"
title={t(i18nKey)}
onClick={() => onClick(src)}
Expand Down

0 comments on commit 61d2510

Please sign in to comment.