mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
* First stab at new page layouts behind feature toggle * Simplifying PageHeader * Progress on a new model that can more easily support new and old page layouts * Progress * rename folder * Progress * Minor change * fixes * Fixing tests * Make breadcrumbs work * Add tests for old Page component * Adding tests for new Page component and behavior * fixing page header test * Fixed test * AppChrome outside route * Renaming folder * Minor fix * Updated * Fixing StoragePage * Fix for banners Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
33 lines
924 B
TypeScript
33 lines
924 B
TypeScript
import React from 'react';
|
|
import { connect, ConnectedProps } from 'react-redux';
|
|
|
|
import { Page } from 'app/core/components/Page/Page';
|
|
|
|
import { GrafanaRouteComponentProps } from '../../core/navigation/types';
|
|
import { getNavModel } from '../../core/selectors/navModel';
|
|
import { StoreState } from '../../types';
|
|
|
|
import { StoredNotifications } from './StoredNotifications';
|
|
|
|
const mapStateToProps = (state: StoreState) => ({
|
|
navModel: getNavModel(state.navIndex, 'notifications'),
|
|
});
|
|
|
|
const connector = connect(mapStateToProps, undefined);
|
|
|
|
interface OwnProps extends GrafanaRouteComponentProps {}
|
|
|
|
type Props = OwnProps & ConnectedProps<typeof connector>;
|
|
|
|
export const NotificationsPage = ({ navModel }: Props) => {
|
|
return (
|
|
<Page navModel={navModel}>
|
|
<Page.Contents>
|
|
<StoredNotifications />
|
|
</Page.Contents>
|
|
</Page>
|
|
);
|
|
};
|
|
|
|
export default connect(mapStateToProps)(NotificationsPage);
|