diff --git a/apps/app/components/ui/index.ts b/apps/app/components/ui/index.ts index 1982f63e3..855655062 100644 --- a/apps/app/components/ui/index.ts +++ b/apps/app/components/ui/index.ts @@ -9,15 +9,14 @@ export * from "./custom-select"; export * from "./date"; export * from "./datepicker"; export * from "./empty-space"; +export * from "./empty-state"; +export * from "./labels-list"; +export * from "./linear-progress-indicator"; export * from "./loader"; export * from "./multi-input"; +export * from "./multi-level-dropdown"; export * from "./multi-level-select"; -export * from "./outline-button"; export * from "./progress-bar"; export * from "./spinner"; export * from "./tooltip"; -export * from "./labels-list"; -export * from "./linear-progress-indicator"; -export * from "./empty-state"; -export * from "./multi-level-dropdown"; export * from "./toggle-switch"; diff --git a/apps/app/components/ui/outline-button.tsx b/apps/app/components/ui/outline-button.tsx deleted file mode 100644 index b4938b730..000000000 --- a/apps/app/components/ui/outline-button.tsx +++ /dev/null @@ -1,60 +0,0 @@ -import React from "react"; - -type Props = { - onClick?: () => void; - children: React.ReactNode; - type?: "button" | "submit" | "reset"; - className?: string; - theme?: "primary" | "secondary" | "success" | "danger"; - size?: "sm" | "rg" | "md" | "lg"; - disabled?: boolean; -}; - -export const OutlineButton = React.forwardRef( - ( - { - children, - onClick, - type = "button", - size = "sm", - className = "", - theme = "primary", - disabled = false, - }, - ref - ) => ( - - ) -); - -OutlineButton.displayName = "Button"; diff --git a/apps/app/pages/[workspaceSlug]/projects/[projectId]/settings/index.tsx b/apps/app/pages/[workspaceSlug]/projects/[projectId]/settings/index.tsx index 8c75c247c..6194eb73d 100644 --- a/apps/app/pages/[workspaceSlug]/projects/[projectId]/settings/index.tsx +++ b/apps/app/pages/[workspaceSlug]/projects/[projectId]/settings/index.tsx @@ -23,8 +23,8 @@ import { TextArea, Loader, CustomSelect, - OutlineButton, SecondaryButton, + DangerButton, } from "components/ui"; import { BreadcrumbItem, Breadcrumbs } from "components/breadcrumbs"; // types @@ -346,12 +346,12 @@ const GeneralSettings: NextPage = () => {
{projectDetails ? (
- setSelectedProject(projectDetails.id ?? null)} + outline > Delete Project - +
) : ( diff --git a/apps/app/pages/[workspaceSlug]/settings/index.tsx b/apps/app/pages/[workspaceSlug]/settings/index.tsx index 043ff4989..bed30c48b 100644 --- a/apps/app/pages/[workspaceSlug]/settings/index.tsx +++ b/apps/app/pages/[workspaceSlug]/settings/index.tsx @@ -18,14 +18,7 @@ import { WorkspaceAuthorizationLayout } from "layouts/auth-layout"; import { ImageUploadModal } from "components/core"; import { DeleteWorkspaceModal } from "components/workspace"; // ui -import { - Spinner, - Input, - CustomSelect, - OutlineButton, - SecondaryButton, - DangerButton, -} from "components/ui"; +import { Spinner, Input, CustomSelect, SecondaryButton, DangerButton } from "components/ui"; import { BreadcrumbItem, Breadcrumbs } from "components/breadcrumbs"; // icons import { LinkIcon } from "@heroicons/react/24/outline"; @@ -325,9 +318,9 @@ const WorkspaceSettings: NextPage = () => {

- setIsOpen(true)}> + setIsOpen(true)} outline> Delete the workspace - +