Rename RowAction -> RowOpenAction

This commit is contained in:
Andy Chan (12beesinatrenchcoat) 2024-03-29 14:11:01 -04:00
parent 02c2e89325
commit 8258ba2666
2 changed files with 4 additions and 2 deletions

View File

@ -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) => <RowAction title={info.getValue()} />,
cell: (info) => <RowOpenAction title={info.getValue()} />,
}),
columnHelper.accessor("role", {
cell: (info) => info.renderValue(),

View File

@ -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 (
<div className="font-semibold group flex flex-row items-center justify-between pr-2">