From 8258ba26661f537f95aa9cab40bb66bbb39d2d39 Mon Sep 17 00:00:00 2001 From: "Andy Chan (12beesinatrenchcoat)" Date: Fri, 29 Mar 2024 14:11:01 -0400 Subject: [PATCH] Rename RowAction -> RowOpenAction --- compass/components/Table/Index.tsx | 2 ++ compass/components/Table/{RowAction.tsx => RowOpenAction.tsx} | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) rename compass/components/Table/{RowAction.tsx => RowOpenAction.tsx} (91%) diff --git a/compass/components/Table/Index.tsx b/compass/components/Table/Index.tsx index 5a12c1b..d0c432a 100644 --- a/compass/components/Table/Index.tsx +++ b/compass/components/Table/Index.tsx @@ -10,6 +10,7 @@ import { } from "@tanstack/react-table"; import { useState } from "react"; import { RowAction } from "./RowAction"; +import { RowOpenAction } from "./RowOpenAction"; import { TableAction } from "./TableAction"; const usersExample = usersImport as unknown as User[]; @@ -32,6 +33,7 @@ export const Table = () => { const columns = [ columnHelper.accessor("username", { cell: (info) => , + cell: (info) => , }), columnHelper.accessor("role", { cell: (info) => info.renderValue(), diff --git a/compass/components/Table/RowAction.tsx b/compass/components/Table/RowOpenAction.tsx similarity index 91% rename from compass/components/Table/RowAction.tsx rename to compass/components/Table/RowOpenAction.tsx index 37b0215..30d1cd3 100644 --- a/compass/components/Table/RowAction.tsx +++ b/compass/components/Table/RowOpenAction.tsx @@ -1,14 +1,14 @@ import Drawer from "@/components/page/Drawer"; import {ChangeEvent, useState} from "react"; -export const RowAction = ({ title }) => { +export const RowOpenAction = ({ title }) => { const [pageContent, setPageContent] = useState("") const handleDrawerContentChange = (newContent) => { setPageContent(newContent); }; - + return (