* applied eslint * add locales and lint the project * removed error boundary * updated locales * fix min files * fix locales
52 lines
1.5 KiB
TypeScript
52 lines
1.5 KiB
TypeScript
import React from 'react';
|
|
import { Icon } from 'UI';
|
|
import { Button } from 'antd';
|
|
import Integrations from 'App/components/Client/Integrations/Integrations';
|
|
import withPageTitle from 'App/components/hocs/withPageTitle';
|
|
|
|
import withOnboarding, { WithOnboardingProps } from '../withOnboarding';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
interface Props extends WithOnboardingProps {}
|
|
|
|
function IntegrationsTab(props: Props) {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<>
|
|
<h1 className="flex items-center px-4 py-3 border-b justify-between">
|
|
<div className="flex items-center text-2xl">
|
|
<span>🔌</span>
|
|
<div className="ml-3">{t('Integrations')}</div>
|
|
</div>
|
|
|
|
<a
|
|
href="https://docs.openreplay.com/en/integrations/"
|
|
target="_blank"
|
|
rel="noreferrer"
|
|
>
|
|
<Button
|
|
size="small"
|
|
type="text"
|
|
className="ml-2 flex items-center gap-2"
|
|
icon={<Icon name="question-circle" />}
|
|
>
|
|
<div className="text-main">{t('See Documentation')}</div>
|
|
</Button>
|
|
</a>
|
|
</h1>
|
|
<Integrations hideHeader />
|
|
<div className="border-t px-4 py-3 flex justify-end">
|
|
<Button
|
|
type="primary"
|
|
onClick={() => (props.skip ? props.skip() : null)}
|
|
>
|
|
{t('Complete Setup')}
|
|
</Button>
|
|
</div>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default withOnboarding(
|
|
withPageTitle('Integrations - OpenReplay')(IntegrationsTab),
|
|
);
|