From 6b4c4c07df75cdd27e40064b468241cd53a3cd6d Mon Sep 17 00:00:00 2001 From: lifeparticle Date: Mon, 30 Oct 2023 00:33:55 +1100 Subject: [PATCH] build fix --- ui/src/pages/Automation/GithubIssue/components/CsvTable.tsx | 2 +- .../pages/Automation/GithubIssue/components/DownloadCsv.tsx | 2 +- ui/src/pages/Automation/GithubIssue/index.tsx | 6 +++--- ui/src/pages/Automation/GithubIssue/utils/helper.ts | 3 +-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ui/src/pages/Automation/GithubIssue/components/CsvTable.tsx b/ui/src/pages/Automation/GithubIssue/components/CsvTable.tsx index a6f5be71..6450154e 100644 --- a/ui/src/pages/Automation/GithubIssue/components/CsvTable.tsx +++ b/ui/src/pages/Automation/GithubIssue/components/CsvTable.tsx @@ -1,6 +1,6 @@ import React from "react"; import { Table } from "antd"; -import { IssueType } from "pages/Automation/GithubIssue/types"; +import { IssueType } from "pages/Automation/GithubIssue/index"; interface CsvTableProps { data: IssueType[]; diff --git a/ui/src/pages/Automation/GithubIssue/components/DownloadCsv.tsx b/ui/src/pages/Automation/GithubIssue/components/DownloadCsv.tsx index 677b4bf4..d651161c 100644 --- a/ui/src/pages/Automation/GithubIssue/components/DownloadCsv.tsx +++ b/ui/src/pages/Automation/GithubIssue/components/DownloadCsv.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { SavedIssueType } from "pages/Automation/GithubIssue/types"; +import { SavedIssueType } from "pages/Automation/GithubIssue/index"; import { Button } from "antd"; import { saveAs } from "file-saver"; import { generateCsvData } from "pages/Automation/GithubIssue/utils/helper"; diff --git a/ui/src/pages/Automation/GithubIssue/index.tsx b/ui/src/pages/Automation/GithubIssue/index.tsx index c864dfb0..f54cbc73 100644 --- a/ui/src/pages/Automation/GithubIssue/index.tsx +++ b/ui/src/pages/Automation/GithubIssue/index.tsx @@ -23,8 +23,8 @@ const steps = [ }, ]; -interface IssueType { - [key: string]: unknown; +export interface IssueType { + [key: string]: any; title: string; body?: string; assignee?: string | null; @@ -33,7 +33,7 @@ interface IssueType { labels?: string[]; } -interface SavedIssueType { +export interface SavedIssueType { url: string; title: string; } diff --git a/ui/src/pages/Automation/GithubIssue/utils/helper.ts b/ui/src/pages/Automation/GithubIssue/utils/helper.ts index 0b6e9364..29433897 100644 --- a/ui/src/pages/Automation/GithubIssue/utils/helper.ts +++ b/ui/src/pages/Automation/GithubIssue/utils/helper.ts @@ -1,6 +1,5 @@ import { Dispatch, SetStateAction } from "react"; -import { IssueType, SavedIssueType } from "pages/Automation/GithubIssue/types"; - +import { IssueType, SavedIssueType } from "pages/Automation/GithubIssue/index"; const createGitHubIssue = async ( owner: string, repo: string,