feat create wallet rule

This commit is contained in:
Wikzyy
2025-03-26 00:49:21 +07:00
parent 8a593c7b5e
commit 0f5d190c9e
3 changed files with 369 additions and 4 deletions

View File

@ -1,17 +1,17 @@
import { DefaultTooltip, KeenIcon, useDataGrid } from '@/components';
import { Button } from '@/components/ui/button';
import { useManageProductsContext } from '../../products/hooks/useManageProductsContext';
import { useManageWalletRuleContext } from '../hooks/useManageWalletRuleContext';
const ListToolbar = () => {
const { table, reload } = useDataGrid();
const { handleAddDialog } = useManageProductsContext();
const { handleAddDialog } = useManageWalletRuleContext();
return (
<div className="card-header flex-wrap gap-2 border-b-0 px-5">
<div className="flex flex-wrap gap-2 lg:gap-5 w-full">
<div className="flex justify-between w-full items-center">
<div className="flex w-[50%] gap-3 items-center">
<label className="input input-sm w-1/3">
{/* <label className="input input-sm w-1/3">
<KeenIcon icon="magnifier" />
<input
type="text"
@ -19,7 +19,7 @@ const ListToolbar = () => {
value={(table.getColumn('name')?.getFilterValue() as string) ?? ''}
onChange={(event) => table.getColumn('name')?.setFilterValue(event.target.value)}
/>
</label>
</label> */}
{/* <DefaultTooltip title={'Filter'} placement={'top'}>
<Button
variant="outline"