mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-10 06:10:17 -04:00
Rename RowAction -> RowOpenAction
This commit is contained in:
parent
02c2e89325
commit
8258ba2666
|
@ -10,6 +10,7 @@ import {
|
||||||
} from "@tanstack/react-table";
|
} from "@tanstack/react-table";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { RowAction } from "./RowAction";
|
import { RowAction } from "./RowAction";
|
||||||
|
import { RowOpenAction } from "./RowOpenAction";
|
||||||
import { TableAction } from "./TableAction";
|
import { TableAction } from "./TableAction";
|
||||||
|
|
||||||
const usersExample = usersImport as unknown as User[];
|
const usersExample = usersImport as unknown as User[];
|
||||||
|
@ -32,6 +33,7 @@ export const Table = () => {
|
||||||
const columns = [
|
const columns = [
|
||||||
columnHelper.accessor("username", {
|
columnHelper.accessor("username", {
|
||||||
cell: (info) => <RowAction title={info.getValue()} />,
|
cell: (info) => <RowAction title={info.getValue()} />,
|
||||||
|
cell: (info) => <RowOpenAction title={info.getValue()} />,
|
||||||
}),
|
}),
|
||||||
columnHelper.accessor("role", {
|
columnHelper.accessor("role", {
|
||||||
cell: (info) => info.renderValue(),
|
cell: (info) => info.renderValue(),
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
import Drawer from "@/components/page/Drawer";
|
import Drawer from "@/components/page/Drawer";
|
||||||
import {ChangeEvent, useState} from "react";
|
import {ChangeEvent, useState} from "react";
|
||||||
|
|
||||||
export const RowAction = ({ title }) => {
|
export const RowOpenAction = ({ title }) => {
|
||||||
const [pageContent, setPageContent] = useState("")
|
const [pageContent, setPageContent] = useState("")
|
||||||
|
|
||||||
const handleDrawerContentChange = (newContent) => {
|
const handleDrawerContentChange = (newContent) => {
|
||||||
setPageContent(newContent);
|
setPageContent(newContent);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="font-semibold group flex flex-row items-center justify-between pr-2">
|
<div className="font-semibold group flex flex-row items-center justify-between pr-2">
|
Loading…
Reference in New Issue
Block a user