Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

import { ConfirmPopover } from "@/components/confirmation-popover";
import { Dialog, DialogContent } from "@/components/ui/dialog";
import { toast } from "@/components/ui/toaster";
import { ArrowRight, Check, CircleInfo, Key2, Plus } from "@unkey/icons";
import { Button, Code, CopyButton, InfoTooltip, VisibleButton } from "@unkey/ui";
import { Button, Code, CopyButton, InfoTooltip, VisibleButton, toast } from "@unkey/ui";
import { useRouter } from "next/navigation";
import { useEffect, useRef, useState } from "react";
import { UNNAMED_KEY } from "../create-key.constants";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use client";
import { toast } from "@/components/ui/toaster";
import { Code } from "@unkey/icons";
import { Button, FormTextarea } from "@unkey/ui";
import { Button, FormTextarea, toast } from "@unkey/ui";
import { useFormContext, useWatch } from "react-hook-form";
import type { MetadataFormValues } from "../create-key.schema";
import { ProtectionSwitch } from "./protection-switch";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { toast } from "@unkey/ui";

export const useCreateIdentity = (
onSuccess?: (data: { identityId: string; externalId: string }) => void,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { toast } from "@unkey/ui";

export const useCreateKey = (
onSuccess: (data: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { toast } from "@unkey/ui";
import { useMemo } from "react";

const MAX_IDENTITY_FETCH_LIMIT = 10;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import {
NavigableDialogHeader,
NavigableDialogNav,
NavigableDialogRoot,
toast,
} from "@unkey/ui";
import { type FC, useEffect, useState } from "react";
import { FormProvider } from "react-hook-form";
import { toast } from "sonner";
import { KeyCreatedSuccessDialog } from "./components/key-created-success-dialog";
import { SectionLabel } from "./components/section-label";
import { type DialogSectionName, SECTIONS } from "./create-key.constants";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { LLMSearch } from "@unkey/ui";
import { transformStructuredOutputToFilters } from "@unkey/ui";
import { LLMSearch, toast, transformStructuredOutputToFilters } from "@unkey/ui";
import { useFilters } from "../../../../hooks/use-filters";

export const LogsSearch = ({ apiId }: { apiId: string }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { formatNumber } from "@/lib/fmt";
import { cn } from "@/lib/utils";
import { Clone } from "@unkey/icons";
import { Button, Card, CardContent } from "@unkey/ui";
import { toast } from "sonner";
import { Button, Card, CardContent, toast } from "@unkey/ui";
import { formatOutcomeName, getOutcomeColor } from "../../../../../utils";

export const OutcomeDistributionSection = ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use client";
import { toast } from "@/components/ui/toaster";
import { Clone } from "@unkey/icons";
import { Button, Card, CardContent } from "@unkey/ui";
import { Button, Card, CardContent, toast } from "@unkey/ui";

export const LogSection = ({
details,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { toast } from "@/components/ui/toaster";
import { Clone } from "@unkey/icons";
import { Button, Card, CardContent } from "@unkey/ui";
import { Button, Card, CardContent, toast } from "@unkey/ui";

type Role = {
name: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { LLMSearch } from "@unkey/ui";
import { transformStructuredOutputToFilters } from "@unkey/ui";
import { LLMSearch, toast, transformStructuredOutputToFilters } from "@unkey/ui";
import type { KeyDetailsFilterValue } from "../../../../filters.schema";
import { useFilters } from "../../../../hooks/use-filters";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { LogHeader } from "@/app/(app)/logs/components/table/log-details/compone
import { LogSection } from "@/app/(app)/logs/components/table/log-details/components/log-section";
import { DEFAULT_DRAGGABLE_WIDTH } from "@/app/(app)/logs/constants";
import { safeParseJson } from "@/app/(app)/logs/utils";
import { toast } from "@/components/ui/toaster";
import type { KeyDetailsLog } from "@unkey/clickhouse/src/verifications";
import { toast } from "@unkey/ui";
import { useFetchRequestDetails } from "./components/hooks/use-logs-query";

const createPanelStyle = (distanceToTop: number) => ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { toast } from "@/components/ui/toaster";
import { trpc } from "@/lib/trpc/client";
import { LLMSearch } from "@unkey/ui";
import { transformStructuredOutputToFilters } from "@unkey/ui";
import { LLMSearch, toast, transformStructuredOutputToFilters } from "@unkey/ui";

import { useFilters } from "../../../../hooks/use-filters";

export const LogsSearch = ({ keyspaceId }: { keyspaceId: string }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { toast } from "@/components/ui/toaster";
import { cn } from "@/lib/utils";
import { CircleLock } from "@unkey/icons";
import { toast } from "@unkey/ui";

export const HiddenValueCell = ({
value,
Expand Down
2 changes: 1 addition & 1 deletion apps/dashboard/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommandMenu } from "@/components/dashboard/command-menu";
import { Toaster } from "@/components/ui/toaster";
import { PHProvider, PostHogPageview } from "@/providers/PostHogProvider";
import { Toaster } from "@unkey/ui";
import "@/styles/tailwind/tailwind.css";
import "@unkey/ui/css";

Expand Down
1 change: 1 addition & 0 deletions apps/dashboard/components/ui/toaster.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use client";
import { useTheme } from "next-themes";
import type * as React from "react";
import { Toaster as Sonner, toast } from "sonner";

type ToasterProps = React.ComponentProps<typeof Sonner>;
Expand Down
Loading
Loading