mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-06 20:50:17 -04:00
Rename RowAction -> RowOpenAction
This commit is contained in:
parent
02c2e89325
commit
8258ba2666
|
@ -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(),
|
||||
|
|
|
@ -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">
|
Loading…
Reference in New Issue
Block a user