mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
63a36fb25d
* feat: jira importer * fix: yarn lock * fix: displaying correct count of users that are been imported * fix: showing workspace member in import users
50 lines
1.7 KiB
TypeScript
50 lines
1.7 KiB
TypeScript
import React from "react";
|
|
|
|
// react hook form
|
|
import { useFormContext } from "react-hook-form";
|
|
|
|
// types
|
|
import { IJiraImporterForm } from "types";
|
|
|
|
export const JiraConfirmImport: React.FC = () => {
|
|
const { watch } = useFormContext<IJiraImporterForm>();
|
|
|
|
return (
|
|
<div className="h-full w-full overflow-y-auto">
|
|
<div className="grid grid-cols-1 gap-10 md:grid-cols-2">
|
|
<div className="col-span-2">
|
|
<h3 className="text-lg font-semibold">Confirm</h3>
|
|
</div>
|
|
|
|
<div className="col-span-1">
|
|
<p className="text-sm text-gray-500">Migrating</p>
|
|
</div>
|
|
<div className="col-span-1 flex items-center justify-between">
|
|
<div>
|
|
<h4 className="mb-2 text-xl font-semibold">{watch("data.total_issues")}</h4>
|
|
<p className="text-sm text-gray-500">Issues</p>
|
|
</div>
|
|
<div>
|
|
<h4 className="mb-2 text-xl font-semibold">{watch("data.total_states")}</h4>
|
|
<p className="text-sm text-gray-500">States</p>
|
|
</div>
|
|
<div>
|
|
<h4 className="mb-2 text-xl font-semibold">{watch("data.total_modules")}</h4>
|
|
<p className="text-sm text-gray-500">Modules</p>
|
|
</div>
|
|
<div>
|
|
<h4 className="mb-2 text-xl font-semibold">{watch("data.total_labels")}</h4>
|
|
<p className="text-sm text-gray-500">Labels</p>
|
|
</div>
|
|
<div>
|
|
<h4 className="mb-2 text-xl font-semibold">
|
|
{watch("data.users").filter((user) => user.import).length}
|
|
</h4>
|
|
<p className="text-sm text-gray-500">User</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|