Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions web/components/integration/guide.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { useState } from "react";

import Link from "next/link";
import Image from "next/image";
import { useRouter } from "next/router";

import useSWR, { mutate } from "swr";

// hooks
import useUserAuth from "hooks/use-user-auth";
// services
Expand All @@ -21,7 +18,7 @@ import { IImporterService } from "types";
// fetch-keys
import { IMPORTER_SERVICES_LIST } from "constants/fetch-keys";
// constants
import { IMPORTERS_EXPORTERS_LIST } from "constants/workspace";
import { IMPORTERS_LIST } from "constants/workspace";

// services
const integrationService = new IntegrationService();
Expand Down Expand Up @@ -76,7 +73,7 @@ const IntegrationGuide = () => {
</div>
</a>
</div> */}
{IMPORTERS_EXPORTERS_LIST.map((service) => (
{IMPORTERS_LIST.map((service) => (
<div
key={service.provider}
className="flex items-center justify-between gap-2 border-b border-custom-border-200 bg-custom-background-100 px-4 py-6"
Expand Down
16 changes: 3 additions & 13 deletions web/components/integration/jira/root.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
import React, { useState } from "react";

// next
import Link from "next/link";
import Image from "next/image";
import { useRouter } from "next/router";

// swr
import { mutate } from "swr";

// react hook form
import { FormProvider, useForm } from "react-hook-form";

// icons
import { ArrowLeft, Check, List, Settings } from "lucide-react";

// services
import { JiraImporterService } from "services/integrations";

// fetch keys
import { IMPORTER_SERVICES_LIST } from "constants/fetch-keys";

// components
import { Button, UserGroupIcon } from "@plane/ui";
import {
Expand All @@ -31,9 +21,9 @@ import {
TJiraIntegrationSteps,
IJiraIntegrationData,
} from ".";

import JiraLogo from "public/services/jira.png";

// assets
import JiraLogo from "public/services/jira.svg";
// types
import { IUser, IJiraImporterForm } from "types";

const integrationWorkflowData: Array<{
Expand Down
8 changes: 3 additions & 5 deletions web/components/integration/single-import.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { renderShortDateWithYearFormat } from "helpers/date-time.helper";
// types
import { IImporterService } from "types";
// constants
import { IMPORTERS_EXPORTERS_LIST } from "constants/workspace";
import { IMPORTERS_LIST } from "constants/workspace";

type Props = {
service: IImporterService;
Expand All @@ -21,10 +21,8 @@ export const SingleImport: React.FC<Props> = ({ service, refreshing, handleDelet
<h4 className="flex items-center gap-2 text-sm">
<span>
Import from{" "}
<span className="font-medium">
{IMPORTERS_EXPORTERS_LIST.find((i) => i.provider === service.service)?.title}
</span>{" "}
to <span className="font-medium">{service.project_detail.name}</span>
<span className="font-medium">{IMPORTERS_LIST.find((i) => i.provider === service.service)?.title}</span> to{" "}
<span className="font-medium">{service.project_detail.name}</span>
</span>
<span
className={`rounded px-2 py-0.5 text-xs capitalize ${
Expand Down
4 changes: 2 additions & 2 deletions web/constants/workspace.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// services images
import GithubLogo from "public/services/github.png";
import JiraLogo from "public/services/jira.png";
import JiraLogo from "public/services/jira.svg";
import CSVLogo from "public/services/csv.svg";
import ExcelLogo from "public/services/excel.svg";
import JSONLogo from "public/services/json.svg";
Expand Down Expand Up @@ -28,7 +28,7 @@ export const USER_ROLES = [
{ value: "Other", label: "Other" },
];

export const IMPORTERS_EXPORTERS_LIST = [
export const IMPORTERS_LIST = [
{
provider: "github",
type: "import",
Expand Down
Binary file removed web/public/services/jira.png
Binary file not shown.
15 changes: 15 additions & 0 deletions web/public/services/jira.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.