Scenes: update to v0.3 (#65886)

This commit is contained in:
Torkel Ödegaard
2023-04-04 12:46:04 +02:00
committed by GitHub
parent ed45991e1b
commit bf5f61319a
5 changed files with 18 additions and 31 deletions

View File

@@ -1,10 +1,10 @@
import React from 'react';
import { SelectableValue } from '@grafana/data';
import { SceneComponentProps, SceneObjectBase, SceneObjectStatePlain } from '@grafana/scenes';
import { SceneComponentProps, SceneObjectBase, SceneObjectState } from '@grafana/scenes';
import { RadioButtonGroup } from '@grafana/ui';
export interface SceneRadioToggleState extends SceneObjectStatePlain {
export interface SceneRadioToggleState extends SceneObjectState {
options: Array<SelectableValue<string>>;
value: string;
onChange: (value: string) => void;

View File

@@ -1,9 +1,9 @@
import React from 'react';
import { SceneComponentProps, SceneObjectStatePlain, SceneObjectBase } from '@grafana/scenes';
import { SceneComponentProps, SceneObjectState, SceneObjectBase } from '@grafana/scenes';
import { Input } from '@grafana/ui';
export interface SceneSearchBoxState extends SceneObjectStatePlain {
export interface SceneSearchBoxState extends SceneObjectState {
value: string;
}

View File

@@ -3,18 +3,12 @@ import React from 'react';
import { GrafanaTheme2, PageLayoutType } from '@grafana/data';
import { config, locationService } from '@grafana/runtime';
import {
UrlSyncManager,
SceneObjectBase,
SceneComponentProps,
SceneObject,
SceneObjectStatePlain,
} from '@grafana/scenes';
import { UrlSyncManager, SceneObjectBase, SceneComponentProps, SceneObject, SceneObjectState } from '@grafana/scenes';
import { PageToolbar, ToolbarButton, useStyles2 } from '@grafana/ui';
import { AppChromeUpdate } from 'app/core/components/AppChrome/AppChromeUpdate';
import { Page } from 'app/core/components/Page/Page';
interface DashboardSceneState extends SceneObjectStatePlain {
interface DashboardSceneState extends SceneObjectState {
title: string;
uid?: string;
body: SceneObject;