fix(ui): replace deprecated Tremor Button with Ant Design Button in CreatedKeyDisplay

This commit is contained in:
Ishaan Jaffer 2026-02-24 16:54:36 -08:00
parent 6599143729
commit 92105b4fb7

View file

@ -1,7 +1,6 @@
import React, { useState } from "react";
import { CopyToClipboard } from "react-copy-to-clipboard";
import { Button } from "@tremor/react";
import { message } from "antd";
import { Button, message } from "antd";
interface CreatedKeyDisplayProps {
apiKey: string;
@ -43,7 +42,9 @@ const CreatedKeyDisplay: React.FC<CreatedKeyDisplayProps> = ({ apiKey }) => {
</div>
<CopyToClipboard text={apiKey} onCopy={handleCopy}>
<Button className="mt-3">{copied ? "Copied!" : "Copy Virtual Key"}</Button>
<Button type="primary" style={{ marginTop: 12 }}>
{copied ? "Copied!" : "Copy Virtual Key"}
</Button>
</CopyToClipboard>
</div>
);