Вот мой код макета:
Код: Выделить всё
export const AuthenticatedLayout = ({ children }) => {
return (
{children}
);
};
Код: Выделить всё
const CustomDataTable = ({
data,
columns,
actionsBodyTemplate,
first,
rows,
totalRecords,
onPageChange,
customTemplate,
}) => {
return (
{columns.map((col, index) => (
))}
{actionsBodyTemplate && (
)}
{customTemplate && {customTemplate}}
first={first}
rows={rows}
totalRecords={totalRecords}
onPageChange={onPageChange}
rowsPerPageOptions={[5, 10, 20]}
className="custom-paginator"
/>
);
};
export default CustomDataTable;
Код: Выделить всё
return (
(
openModal("update", rowData)}
onDelete={() => deleteMutation.mutate(rowData.id)}
onShow={() => navigate(`/portfolios/${rowData.id}`)}
/>
)}
customTemplate={
selectedCheckboxes.length > 0 && (
hideCheckboxes()}
>
გაუქმება
setDistributionModalVisible(true)}
>
გადანაწილება
)
}
/>
);
Подробнее здесь: https://stackoverflow.com/questions/792 ... t-overflow