table fixing

parent ed3fcbc4
......@@ -14,7 +14,7 @@ const items: MenuItem[] = [
];
const Header: React.FC = () => {
const [openMenu, setOpenMenu] = useState(false);
const [openMenu, setOpenMenu] = useState<boolean>(false);
return (
<header className="header">
......
......@@ -52,6 +52,15 @@ const columns: TableProps<DataType>['columns'] = [
</p>
)
}
},
{
title: "act",
width: 60,
render: (value ) => {
return (
<Button onClick={() => console.log(value)} icon={<MaterialSymbol>delete</MaterialSymbol>} />
)
}
}
]
......@@ -96,12 +105,13 @@ const HomePage: React.FC = () => {
<div className="data">
{table}
</div>
<div className='pagination-container'>
{/* <div className='pagination-container'>
<Pagination current={1} defaultCurrent={1} pageSize={1} total={10} onChange={handlePaginationChange} />
</div>
</div> */}
</section>
</div>
);
}
export default HomePage;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment