mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
TopNav: Plugin page layouts / information architecture (#53174)
* Change nav structure when topnav is enable to do initial tests with new information architecture * Support for nested sections * Updated * sentance case * Progress on plugin challange * Rewrite to functional component * Progress * Updates * Progress * Progress on things * missing file * Fixing issue with runtime, need to use setter way to set component exposed via runtime * Move PageLayoutType to grafana/data * Fixing breadcrumb issue, adding more tests * reverted backend change * fix recursive issue with cleanup
This commit is contained in:
@@ -2,10 +2,10 @@ import { createAction } from '@reduxjs/toolkit';
|
||||
|
||||
import { StoreState } from '../../types';
|
||||
|
||||
export type StateSelector<T> = (state: StoreState) => T;
|
||||
export type CleanUpAction = (state: StoreState) => void;
|
||||
|
||||
export interface CleanUp<T> {
|
||||
stateSelector: (state: StoreState) => T;
|
||||
export interface CleanUpPayload {
|
||||
cleanupAction: CleanUpAction;
|
||||
}
|
||||
|
||||
export const cleanUpAction = createAction<CleanUp<{}>>('core/cleanUpState');
|
||||
export const cleanUpAction = createAction<CleanUpPayload>('core/cleanUpState');
|
||||
|
||||
Reference in New Issue
Block a user