openreplay/frontend/app/components/Session_/Issues/IssuesModal.tsx
Andrey Babushkin fd5c0c9747
Add lokalisation (#3092)
* applied eslint

* add locales and lint the project

* removed error boundary

* updated locales

* fix min files

* fix locales
2025-03-06 17:43:15 +01:00

28 lines
667 B
TypeScript

import React from 'react';
import cn from 'classnames';
import stl from './issuesModal.module.css';
import IssueForm from './IssueForm';
import { useTranslation } from 'react-i18next';
interface Props {
sessionId: string;
closeHandler: () => void;
}
function IssuesModal({ sessionId, closeHandler }: Props) {
const { t } = useTranslation();
return (
<div className={cn(stl.wrapper, 'h-screen')}>
<h3 className="text-xl font-semibold">
<span>{t('Create Issue')}</span>
</h3>
<IssueForm
sessionId={sessionId}
closeHandler={closeHandler}
errors={[]}
/>
</div>
);
}
export default IssuesModal;