onboarding.tsx 661 B

1234567891011121314151617181920212223
  1. import {useCallback} from 'react';
  2. import {browserHistory} from 'react-router';
  3. import {generateProfilingRoute} from 'sentry/utils/profiling/routes';
  4. import useOrganization from 'sentry/utils/useOrganization';
  5. import ProfilingOnboarding from './profilingOnboarding';
  6. export default function Onboarding() {
  7. const organization = useOrganization();
  8. const onDismissClick = useCallback(() => {
  9. browserHistory.push(generateProfilingRoute({orgSlug: organization.slug}));
  10. }, [organization.slug]);
  11. return (
  12. <ProfilingOnboarding
  13. organization={organization}
  14. onDoneClick={onDismissClick}
  15. onDismissClick={onDismissClick}
  16. />
  17. );
  18. }