diff --git a/apps/app/components/account/email-code-form.tsx b/apps/app/components/account/email-code-form.tsx
index db201041c..6cb9f9ba0 100644
--- a/apps/app/components/account/email-code-form.tsx
+++ b/apps/app/components/account/email-code-form.tsx
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from "react";
import { useForm } from "react-hook-form";
// ui
import { CheckCircleIcon } from "@heroicons/react/20/solid";
-import { Button, Input } from "components/ui";
+import { Input, SecondaryButton } from "components/ui";
// services
import authenticationService from "services/authentication.service";
import useToast from "hooks/use-toast";
@@ -140,8 +140,8 @@ export const EmailCodeForm = ({ onSuccess }: any) => {
/>
-
- Discard
-
-
+ Discard
+
{status
? isSubmitting
? "Updating Issue..."
diff --git a/apps/app/components/issues/parent-issues-list-modal.tsx b/apps/app/components/issues/parent-issues-list-modal.tsx
index dc4de5329..1c9705e9b 100644
--- a/apps/app/components/issues/parent-issues-list-modal.tsx
+++ b/apps/app/components/issues/parent-issues-list-modal.tsx
@@ -5,7 +5,7 @@ import { Combobox, Dialog, Transition } from "@headlessui/react";
// icons
import { MagnifyingGlassIcon, RectangleStackIcon } from "@heroicons/react/24/outline";
// ui
-import { Button } from "components/ui";
+import { PrimaryButton, SecondaryButton } from "components/ui";
// types
import { IIssue } from "types";
import { LayerDiagonalIcon } from "components/icons";
@@ -145,12 +145,8 @@ export const ParentIssuesListModal: React.FC = ({
)}
-
- Cancel
-
-
onChange(values)}>
- Add issues
-
+
Cancel
+
onChange(values)}>Add issues
>
) : (
diff --git a/apps/app/components/issues/sidebar-select/blocked.tsx b/apps/app/components/issues/sidebar-select/blocked.tsx
index 8b802bdd3..c704b0e45 100644
--- a/apps/app/components/issues/sidebar-select/blocked.tsx
+++ b/apps/app/components/issues/sidebar-select/blocked.tsx
@@ -14,7 +14,7 @@ import useToast from "hooks/use-toast";
// services
import issuesService from "services/issues.service";
// ui
-import { Button } from "components/ui";
+import { PrimaryButton, SecondaryButton } from "components/ui";
// icons
import { MagnifyingGlassIcon, XMarkIcon } from "@heroicons/react/24/outline";
import { BlockedIcon, LayerDiagonalIcon } from "components/icons";
@@ -270,14 +270,10 @@ export const SidebarBlockedSelect: React.FC = ({
{filteredIssues.length > 0 && (
-
-
- Close
-
-
-
+ Cancel
+
Add selected issues
-
+
)}
diff --git a/apps/app/components/issues/sidebar-select/blocker.tsx b/apps/app/components/issues/sidebar-select/blocker.tsx
index 3d343260c..6f7ae1d01 100644
--- a/apps/app/components/issues/sidebar-select/blocker.tsx
+++ b/apps/app/components/issues/sidebar-select/blocker.tsx
@@ -14,7 +14,7 @@ import useToast from "hooks/use-toast";
// services
import issuesServices from "services/issues.service";
// ui
-import { Button } from "components/ui";
+import { PrimaryButton, SecondaryButton } from "components/ui";
// icons
import { MagnifyingGlassIcon, XMarkIcon } from "@heroicons/react/24/outline";
import { BlockerIcon, LayerDiagonalIcon } from "components/icons";
@@ -270,14 +270,10 @@ export const SidebarBlockerSelect: React.FC = ({
{filteredIssues.length > 0 && (
-
-
- Close
-
-
-
+ Cancel
+
Add selected issues
-
+
)}
diff --git a/apps/app/components/issues/sidebar.tsx b/apps/app/components/issues/sidebar.tsx
index 5632dc015..79ad4cc44 100644
--- a/apps/app/components/issues/sidebar.tsx
+++ b/apps/app/components/issues/sidebar.tsx
@@ -29,7 +29,7 @@ import {
SidebarStateSelect,
} from "components/issues";
// ui
-import { Input, Button, Spinner, CustomDatePicker } from "components/ui";
+import { Input, Spinner, CustomDatePicker } from "components/ui";
// icons
import {
TagIcon,
@@ -581,12 +581,20 @@ export const IssueDetailsSidebar: React.FC = ({
}}
autoComplete="off"
/>
- setCreateLabelForm(false)}>
+ setCreateLabelForm(false)}
+ >
-
-
+
+
-
+
)}
diff --git a/apps/app/components/issues/sub-issues-list.tsx b/apps/app/components/issues/sub-issues-list.tsx
index deddae03a..e7d769a43 100644
--- a/apps/app/components/issues/sub-issues-list.tsx
+++ b/apps/app/components/issues/sub-issues-list.tsx
@@ -210,7 +210,7 @@ export const SubIssuesList: FC = ({ parentIssue, userAuth }) => {
= ({ parentIssue, userAuth }) => {
{!isNotAllowed && (
{
e.preventDefault();
e.stopPropagation();
@@ -253,6 +253,7 @@ export const SubIssuesList: FC = ({ parentIssue, userAuth }) => {
}
optionsPosition="left"
noBorder
+ noChevron
>
Create new
setSubIssuesListModal(true)}>
diff --git a/apps/app/components/labels/create-label-modal.tsx b/apps/app/components/labels/create-label-modal.tsx
index 58967d6d4..94757fd24 100644
--- a/apps/app/components/labels/create-label-modal.tsx
+++ b/apps/app/components/labels/create-label-modal.tsx
@@ -13,7 +13,7 @@ import { Dialog, Popover, Transition } from "@headlessui/react";
// services
import issuesService from "services/issues.service";
// ui
-import { Button, Input } from "components/ui";
+import { Input, PrimaryButton, SecondaryButton } from "components/ui";
// icons
import { ChevronDownIcon } from "@heroicons/react/24/outline";
// types
@@ -171,12 +171,10 @@ export const CreateLabelModal: React.FC = ({ isOpen, projectId, handleClo
-
- Cancel
-
-
+ Cancel
+
{isSubmitting ? "Creating Label..." : "Create Label"}
-
+
diff --git a/apps/app/components/labels/create-update-label-inline.tsx b/apps/app/components/labels/create-update-label-inline.tsx
index a3a9c6bad..a58da94ac 100644
--- a/apps/app/components/labels/create-update-label-inline.tsx
+++ b/apps/app/components/labels/create-update-label-inline.tsx
@@ -13,7 +13,7 @@ import { Popover, Transition } from "@headlessui/react";
// services
import issuesService from "services/issues.service";
// ui
-import { Button, Input } from "components/ui";
+import { Input, PrimaryButton, SecondaryButton } from "components/ui";
// types
import { IIssueLabels } from "types";
// fetch-keys
@@ -168,24 +168,22 @@ export const CreateUpdateLabelInline: React.FC = ({
error={errors.name}
/>
- {
reset();
setLabelForm(false);
}}
>
Cancel
-
+
{isUpdating ? (
-
+
{isSubmitting ? "Updating" : "Update"}
-
+
) : (
-
+
{isSubmitting ? "Adding" : "Add"}
-
+
)}
);
diff --git a/apps/app/components/modules/delete-module-modal.tsx b/apps/app/components/modules/delete-module-modal.tsx
index 05ed67089..129be1890 100644
--- a/apps/app/components/modules/delete-module-modal.tsx
+++ b/apps/app/components/modules/delete-module-modal.tsx
@@ -11,7 +11,7 @@ import modulesService from "services/modules.service";
// hooks
import useToast from "hooks/use-toast";
// ui
-import { Button } from "components/ui";
+import { SecondaryButton, DangerButton } from "components/ui";
// icons
import { ExclamationTriangleIcon } from "@heroicons/react/24/outline";
// types
@@ -29,14 +29,10 @@ export const DeleteModuleModal: React.FC = ({ isOpen, setIsOpen, data })
const [isDeleteLoading, setIsDeleteLoading] = useState(false);
const router = useRouter();
- const {
- query: { workspaceSlug },
- } = router;
+ const { workspaceSlug } = router.query;
const { setToastAlert } = useToast();
- const cancelButtonRef = useRef(null);
-
const handleClose = () => {
setIsOpen(false);
setIsDeleteLoading(false);
@@ -67,12 +63,7 @@ export const DeleteModuleModal: React.FC = ({ isOpen, setIsOpen, data })
return (
-