* applied eslint * add locales and lint the project * removed error boundary * updated locales * fix min files * fix locales
28 lines
667 B
TypeScript
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;
|