mirror of
https://github.com/Sevichecc/m-oauth.git
synced 2025-04-30 06:59:29 +08:00
refactor: move DataDisplay
This commit is contained in:
parent
c2900df6e9
commit
81dbaa3151
2 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
"use client";
|
||||
import InputForm from "@/components/InputForm";
|
||||
import DataDisplay from "@/components/DataDisplay";
|
||||
import DataDisplay from "@/components/ResultTable";
|
||||
import useCreateApp from "@/hooks/useCreateApp";
|
||||
|
||||
const FormContainer = () => {
|
||||
|
|
|
@ -13,11 +13,11 @@ import { AppEntry } from "@/lib/types";
|
|||
import { CopyButton } from "./ui/copybutton";
|
||||
|
||||
const renderTableRow = (label: string, value: string | undefined) => (
|
||||
<TableRow className="group relative">
|
||||
<TableRow className="relative">
|
||||
<TableCell className="font-medium">{label}</TableCell>
|
||||
<TableCell className="font-mono break-all flex justify-between items-center">
|
||||
<TableCell className="flex items-center justify-between break-all font-mono">
|
||||
{value}
|
||||
{value && <CopyButton value={value} className="end-2 shrink-0"/>}
|
||||
{value && <CopyButton value={value} className="end-2 shrink-0" />}
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
);
|
Loading…
Reference in a new issue