Skip to content

Commit

Permalink
Merge pull request #370 from simbabque/fix-key-warning
Browse files Browse the repository at this point in the history
fix 'each child in list should have key' warning
  • Loading branch information
ewoerner authored Apr 6, 2024
2 parents 1a18b60 + 1835b1d commit 584b9db
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/components/banner-edit-tools/BannerEditTools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,33 @@ export const BannerEditTools: FC<BannerEditToolsProps> = ({ banner }) => {
const buttons = []
if (creatorPluginAvailable) {
buttons.push(
<Button className="positive-action-button" onClick={onRefreshBanner}>
<Button
key="refresh"
className="positive-action-button"
onClick={onRefreshBanner}
>
{t('buttons.refresh')}
</Button>
)
}
if (owner || authenticated) {
buttons.push(
<Button className="positive-action-button" onClick={onEditBanner}>
<Button
key="edit"
className="positive-action-button"
onClick={onEditBanner}
>
{t('buttons.edit')}
</Button>
)
}
if (authenticated) {
buttons.push(
<Button className="negative-action-button" onClick={onDeleteBanner}>
<Button
key="delete"
className="negative-action-button"
onClick={onDeleteBanner}
>
{t('buttons.delete')}
</Button>
)
Expand Down

0 comments on commit 584b9db

Please sign in to comment.