Skip to content

Commit

Permalink
Disable change owner access permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
yurushao committed Jan 12, 2025
1 parent af56ef8 commit 9426cdc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion playground/src/components/access/data-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import { parseTxError } from "@/lib/error";
import { PublicKey } from "@solana/web3.js";
import { KeyData } from "./columns";
import { usePubkeyLabels } from "@/hooks/usePubkeyLabels";
import { cn } from "@/lib/utils";

interface DataTableProps<TData extends KeyData> {
columns: ColumnDef<TData>[];
Expand Down Expand Up @@ -304,7 +305,10 @@ export function DataTable<TData extends KeyData>({
<SheetTrigger asChild>
<TableRow
data-state={row.getIsSelected() && "selected"}
className="cursor-pointer"
className={cn(
"cursor-pointer",
row.original.label === "Owner" && "bg-muted",
)}
>
{row.getVisibleCells().map((cell) => (
<TableCell key={cell.id}>
Expand Down

0 comments on commit 9426cdc

Please sign in to comment.