mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Scenes: update to v0.3 (#65886)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user