diff --git a/src/app/guards/OnboardGuard.tsx b/src/app/guards/OnboardGuard.tsx index 638d1066b..ff4034544 100644 --- a/src/app/guards/OnboardGuard.tsx +++ b/src/app/guards/OnboardGuard.tsx @@ -5,8 +5,6 @@ import { createOnboardingStore } from 'directives/Onboard/Store/create'; import { useMemo } from 'react'; import { OnboardingStoreNames } from 'stores/names'; import { BaseComponentProps } from 'types'; -import { EmotionJSX } from '@emotion/react/types/jsx-namespace'; -import { Stack } from '@mui/material'; import useDirectiveGuard from './hooks'; const SELECTED_DIRECTIVE = 'betaOnboard'; @@ -18,16 +16,10 @@ const SELECTED_DIRECTIVE = 'betaOnboard'; // stop passing in the grantsMutate and pass the directiveGuard mutate. interface Props extends BaseComponentProps { grantsMutate: any; - AlertElement?: () => EmotionJSX.Element | null; forceDisplay?: boolean; } -function OnboardGuard({ - AlertElement, - children, - forceDisplay, - grantsMutate, -}: Props) { +function OnboardGuard({ children, forceDisplay, grantsMutate }: Props) { const { directive, loading, status } = useDirectiveGuard( SELECTED_DIRECTIVE, { forceNew: forceDisplay } @@ -44,14 +36,11 @@ function OnboardGuard({ return ( - - {AlertElement ? : null} - - + );