mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: add some unique keys to prevent warnings (#59143)
add some unique keys to prevent warnings
This commit is contained in:
parent
414df842b8
commit
26a7423151
@ -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}`)}
|
||||
|
@ -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 })}
|
||||
|
Loading…
Reference in New Issue
Block a user