diff --git a/frontend/app/components/Onboarding/components/InstallOpenReplayTab/InstallOpenReplayTab.tsx b/frontend/app/components/Onboarding/components/InstallOpenReplayTab/InstallOpenReplayTab.tsx index 4a66fe2c3..e2735d32d 100644 --- a/frontend/app/components/Onboarding/components/InstallOpenReplayTab/InstallOpenReplayTab.tsx +++ b/frontend/app/components/Onboarding/components/InstallOpenReplayTab/InstallOpenReplayTab.tsx @@ -8,6 +8,7 @@ import MobileOnboardingTabs from '../OnboardingTabs/OnboardingMobileTabs'; import ProjectFormButton from '../ProjectFormButton'; import withOnboarding, { WithOnboardingProps } from '../withOnboarding'; import { useTranslation } from 'react-i18next'; +import { CircleHelp } from 'lucide-react' interface Props extends WithOnboardingProps { platforms: Array<{ @@ -45,8 +46,8 @@ function InstallOpenReplayTab(props: Props) { diff --git a/frontend/app/components/Onboarding/components/OnboardingTabs/Callouts.tsx b/frontend/app/components/Onboarding/components/OnboardingTabs/Callouts.tsx new file mode 100644 index 000000000..0f544cf67 --- /dev/null +++ b/frontend/app/components/Onboarding/components/OnboardingTabs/Callouts.tsx @@ -0,0 +1,32 @@ +import React from 'react' +import DocCard from "App/components/shared/DocCard"; +import { useTranslation } from 'react-i18next'; +import { Mail } from 'lucide-react' +import { CopyButton } from "UI"; + +export function CollabCard({ showUserModal }: { showUserModal: () => void }) { + const { t } = useTranslation(); + + return ( + +
+ + + {t('Invite and Collaborate')} + +
+
+ ) +} + +export function ProjectKeyCard({ projectKey }: { projectKey: string }) { + const { t } = useTranslation(); + return ( + +
+
{projectKey}
+ +
+
+ ) +} \ No newline at end of file diff --git a/frontend/app/components/Onboarding/components/OnboardingTabs/OnboardingMobileTabs.tsx b/frontend/app/components/Onboarding/components/OnboardingTabs/OnboardingMobileTabs.tsx index d280945ac..e39d22c7e 100644 --- a/frontend/app/components/Onboarding/components/OnboardingTabs/OnboardingMobileTabs.tsx +++ b/frontend/app/components/Onboarding/components/OnboardingTabs/OnboardingMobileTabs.tsx @@ -4,6 +4,7 @@ import DocCard from 'Shared/DocCard/DocCard'; import { useModal } from 'App/components/Modal'; import UserForm from 'App/components/Client/Users/components/UserForm/UserForm'; import AndroidInstallDocs from 'Components/Onboarding/components/OnboardingTabs/InstallDocs/AndroidInstallDocs'; +import { CollabCard, ProjectKeyCard } from "./Callouts"; import MobileInstallDocs from './InstallDocs/MobileInstallDocs'; import { useTranslation } from 'react-i18next'; @@ -39,18 +40,9 @@ function MobileTrackingCodeModal(props: Props) {
- - - {t('Invite and Collaborate')} - - + - -
- {site.projectKey} - -
-
+
); @@ -62,18 +54,9 @@ function MobileTrackingCodeModal(props: Props) {
- - - {t('Invite and Collaborate')} - - + - -
- {site.projectKey} - -
-
+
); diff --git a/frontend/app/components/Onboarding/components/OnboardingTabs/OnboardingTabs.tsx b/frontend/app/components/Onboarding/components/OnboardingTabs/OnboardingTabs.tsx index 6c92e527b..77bfe17e9 100644 --- a/frontend/app/components/Onboarding/components/OnboardingTabs/OnboardingTabs.tsx +++ b/frontend/app/components/Onboarding/components/OnboardingTabs/OnboardingTabs.tsx @@ -3,6 +3,7 @@ import { Tabs, Icon, CopyButton } from 'UI'; import DocCard from 'Shared/DocCard/DocCard'; import { useModal } from 'App/components/Modal'; import UserForm from 'App/components/Client/Users/components/UserForm/UserForm'; +import { CollabCard, ProjectKeyCard } from "./Callouts"; import InstallDocs from './InstallDocs'; import ProjectCodeSnippet from './ProjectCodeSnippet'; import { useTranslation } from 'react-i18next'; @@ -37,20 +38,9 @@ function TrackingCodeModal(props: Props) {
- - - {t('Invite and Collaborate')} - - - -
- {site.projectKey} - -
-
+ + +
- - - {t('Invite and Collaborate')} - - + - -
- {site.projectKey} - -
-
+
); diff --git a/frontend/app/components/Onboarding/components/SideMenu.tsx b/frontend/app/components/Onboarding/components/SideMenu.tsx index ccd50701d..e05efc868 100644 --- a/frontend/app/components/Onboarding/components/SideMenu.tsx +++ b/frontend/app/components/Onboarding/components/SideMenu.tsx @@ -41,7 +41,7 @@ function SideMenu(props: Props) { +
{props.icon && (