mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 13:01:56 +00:00
chore: adding a new index.ts file to improve the way we're exporting components (ui)
This commit is contained in:
@@ -1,10 +1,2 @@
|
||||
export * from "./findings/ColumnsFindings";
|
||||
export * from "./findings/SkeletonTableFindings";
|
||||
export * from "./ui/alert/Alert";
|
||||
export * from "./ui/dialog/Dialog";
|
||||
export * from "./ui/header/Header";
|
||||
export * from "./ui/modal";
|
||||
export * from "./ui/sidebar";
|
||||
export * from "./ui/table/StatusBadge";
|
||||
export * from "./ui/table/Table";
|
||||
export * from "./ui/toast";
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
DialogTitle,
|
||||
DialogTrigger,
|
||||
useToast,
|
||||
} from "@/components";
|
||||
} from "@/components/ui";
|
||||
|
||||
import { ButtonAddProvider } from "./ButtonAddProvider";
|
||||
import { CustomRadioProvider } from "./CustomRadioProvider";
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
export * from "./alert/Alert";
|
||||
export * from "./dialog/Dialog";
|
||||
export * from "./header/Header";
|
||||
export * from "./modal";
|
||||
export * from "./sidebar";
|
||||
export * from "./table/StatusBadge";
|
||||
export * from "./table/Table";
|
||||
export * from "./toast";
|
||||
@@ -3,7 +3,7 @@
|
||||
import { Button, useDisclosure } from "@nextui-org/react";
|
||||
import React from "react";
|
||||
|
||||
import { Modal } from "@/components";
|
||||
import { Modal } from "@/components/ui";
|
||||
|
||||
interface ModalWrapProps {
|
||||
modalTitle: string;
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
ToastProvider,
|
||||
ToastTitle,
|
||||
ToastViewport,
|
||||
} from "@/components";
|
||||
} from "@/components/ui";
|
||||
|
||||
import { useToast } from "./use-toast";
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// Inspired by react-hot-toast library
|
||||
import * as React from "react";
|
||||
|
||||
import type { ToastActionElement, ToastProps } from "@/components";
|
||||
import type { ToastActionElement, ToastProps } from "@/components/ui";
|
||||
|
||||
const TOAST_LIMIT = 6;
|
||||
const TOAST_REMOVE_DELAY = 1000000;
|
||||
|
||||
Reference in New Issue
Block a user