Skip to content

Commit

Permalink
export confirmation dialog (#203)
Browse files Browse the repository at this point in the history
* export confirmation dialog

* fix imports

---------

Co-authored-by: Vineeth Asok Kumar <[email protected]>
  • Loading branch information
serdec and vineethasok authored Nov 13, 2023
1 parent 3a20cfa commit fd21630
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
TableHeaderType,
} from "@/components";
import { Dialog } from "@/components/Dialog/Dialog";
import ConfirmationDialog from "@/components/ConfirmationDialog/ConfirmationDialog";
import { ConfirmationDialog } from "@/components/ConfirmationDialog/ConfirmationDialog";

const headers: Array<TableHeaderType> = [
{ label: "Company", isSortable: true, sortDir: "asc" },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Link } from "@/components";
import { GridCenter } from "../commonElement";
import ConfirmationDialog, {
import {
ConfirmationDialog,
ConfirmationDialogProps,
} from "@/components/ConfirmationDialog/ConfirmationDialog";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { renderCUI } from "@/utils/test-utils";
import ConfirmationDialog, {
import {
ConfirmationDialog,
ConfirmationDialogProps,
} from "@/components/ConfirmationDialog/ConfirmationDialog";
import { fireEvent } from "@testing-library/dom";
Expand Down
4 changes: 1 addition & 3 deletions src/components/ConfirmationDialog/ConfirmationDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const ActionsWrapper = styled.div`
gap: ${props => props.theme.click.dialog.space.gap};
`;

const ConfirmationDialog = ({
export const ConfirmationDialog = ({
open,
onOpenChange,
title,
Expand Down Expand Up @@ -61,5 +61,3 @@ const ConfirmationDialog = ({
</Dialog>
);
};

export default ConfirmationDialog;
1 change: 1 addition & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export { CardPrimary } from "./CardPrimary/CardPrimary";
export { Checkbox } from "./Checkbox/Checkbox";
export { CodeBlock } from "./CodeBlock/CodeBlock";
export { Dialog } from "./Dialog/Dialog";
export { ConfirmationDialog } from "./ConfirmationDialog/ConfirmationDialog";
export { EllipsisContent } from "./EllipsisContent/EllipsisContent";
export { Flyout } from "./Flyout/Flyout";
export { InlineCodeBlock } from "./CodeBlock/InlineCodeBlock";
Expand Down
1 change: 1 addition & 0 deletions src/components/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export type { PanelProps } from "./Panel/Panel";
export type { FlyoutProps, FlyoutFooterProps, FlyoutHeaderProps } from "./Flyout/Flyout";
export type { DialogContentProps } from "./Dialog/Dialog";
export type { DialogProps, DialogTriggerProps } from "@radix-ui/react-dialog";
export type { ConfirmationDialogProps } from "./ConfirmationDialog/ConfirmationDialog";
export type { FileTabStatusType } from "./FileTabs/FileTabs";
export type { TableHeaderType, TableRowType, TableProps } from "./Table/Table";

Expand Down

1 comment on commit fd21630

@vercel
Copy link

@vercel vercel bot commented on fd21630 Nov 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

click-ui – ./

click-ui-clickhouse.vercel.app
click-ui.vercel.app
click-ui-git-main-clickhouse.vercel.app

Please sign in to comment.