mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
Chore: add some unique keys to prevent warnings (#59143)
add some unique keys to prevent warnings
This commit is contained in:
@@ -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 })}
|
||||
|
||||
Reference in New Issue
Block a user