Chore: add some unique keys to prevent warnings (#59143)

add some unique keys to prevent warnings
This commit is contained in:
Ashley Harrison 2022-11-22 16:42:21 +00:00 committed by GitHub
parent 414df842b8
commit 26a7423151
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -342,6 +342,7 @@ export const DashNav = React.memo<Props>((props) => {
if (config.featureToggles.scenes) {
buttons.push(
<ToolbarButton
key="button-scenes"
tooltip={'View as Scene'}
icon="apps"
onClick={() => locationService.push(`/scenes/dashboard/${dashboard.uid}`)}

View File

@ -41,6 +41,7 @@ function SceneRenderer({ model }: SceneComponentProps<Scene>) {
if ($editor) {
toolbarActions.push(
<ToolbarButton
key="scene-settings"
icon="cog"
variant={isEditing ? 'primary' : 'default'}
onClick={() => model.setState({ isEditing: !model.state.isEditing })}