Skip to content

Commit 1073dbc

Browse files
authored
chore: Move alert to UI (#4485)
* Moved alert to ui and swapped usages
1 parent 1545442 commit 1073dbc

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

apps/dashboard/app/(app)/[workspaceSlug]/apis/[apiId]/_components/create-key/components/key-secret-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use client";
22

33
import { SecretKey } from "@/app/(app)/[workspaceSlug]/apis/[apiId]/_components/create-key/components/secret-key";
4-
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
54
import { CircleInfo } from "@unkey/icons";
5+
import { Alert, AlertDescription, AlertTitle } from "@unkey/ui";
66
import { Code, CopyButton, VisibleButton } from "@unkey/ui";
77
import { useState } from "react";
88

apps/dashboard/app/(app)/[workspaceSlug]/identities/[identityId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { PageContent } from "@/components/page-content";
2-
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
32
import {
43
Table,
54
TableBody,
@@ -13,6 +12,7 @@ import { clickhouse } from "@/lib/clickhouse";
1312
import { db } from "@/lib/db";
1413
import { formatNumber } from "@/lib/fmt";
1514
import { ChevronRight, Minus } from "@unkey/icons";
15+
import { Alert, AlertDescription, AlertTitle } from "@unkey/ui";
1616
import { Badge, Button, Code, CopyButton } from "@unkey/ui";
1717
import ms from "ms";
1818
import Link from "next/link";

apps/dashboard/components/dashboard/root-key-table/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use client";
22

3-
import { Alert } from "@/components/ui/alert";
43
import {
54
DropdownMenu,
65
DropdownMenuContent,
@@ -10,7 +9,9 @@ import {
109
import { trpc } from "@/lib/trpc/client";
1110
import type { ColumnDef } from "@tanstack/react-table";
1211
import { ArrowOppositeDirectionY, Dots, Minus, Trash } from "@unkey/icons";
12+
1313
import {
14+
Alert,
1415
Badge,
1516
Button,
1617
Checkbox,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { type VariantProps, cva } from "class-variance-authority";
22
import * as React from "react";
33

4-
import { cn } from "@/lib/utils";
4+
import { cn } from "../lib/utils";
55

66
const alertVariants = cva(
77
"relative w-full rounded-lg border p-4 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",

internal/ui/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
export * from "./components/alert";
12
export * from "./components/badge";
23
export * from "./components/buttons/button";
34
export * from "./components/buttons/copy-button";

0 commit comments

Comments
 (0)