index.tsx 760 B

123456789101112131415161718192021222324252627
  1. import React from 'react';
  2. import {RouteComponentProps} from 'react-router';
  3. import Feature from 'app/components/acl/feature';
  4. import {Organization} from 'app/types';
  5. import withOrganization from 'app/utils/withOrganization';
  6. import Detail from './detail';
  7. type Props = RouteComponentProps<{orgId: string; dashboardId: string}, {}> & {
  8. organization: Organization;
  9. children: React.ReactNode;
  10. };
  11. class DashboardsV2Container extends React.Component<Props> {
  12. render() {
  13. const {organization, ...props} = this.props;
  14. return (
  15. <Feature features={['dashboards-basic']} organization={organization}>
  16. <Detail {...props} organization={organization} />
  17. </Feature>
  18. );
  19. }
  20. }
  21. export default withOrganization(DashboardsV2Container);