* applied eslint * add locales and lint the project * removed error boundary * updated locales * fix min files * fix locales
40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
import React from 'react';
|
|
import Modal from 'App/components/Modal/Modal';
|
|
import { observer } from 'mobx-react-lite';
|
|
import StepList, { Step } from './StepList';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
export interface Props {
|
|
list: Step[];
|
|
}
|
|
|
|
function GettingStartedModal(props: Props) {
|
|
const { t } = useTranslation();
|
|
const { list } = props;
|
|
const pendingSteps = list.filter((step) => step.status === 'pending');
|
|
const completedSteps = list.filter(
|
|
(step) => step.status === 'completed' || step.status === 'ignored',
|
|
);
|
|
|
|
return (
|
|
<>
|
|
<Modal.Header title="Setup Openreplay">
|
|
<div className="px-4 pt-4">
|
|
<div className="text-2xl">{t('Setup Openreplay')}</div>
|
|
<p>
|
|
{t(
|
|
'Find all the ways in which OpenReplay can benefit you and your product.',
|
|
)}
|
|
</p>
|
|
</div>
|
|
</Modal.Header>
|
|
|
|
<Modal.Content className="p-4 pb-20">
|
|
<StepList title="Pending" steps={pendingSteps} status="pending" />
|
|
<StepList title="Completed" steps={completedSteps} status="completed" />
|
|
</Modal.Content>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default observer(GettingStartedModal);
|