Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bam32bittheme

Package Overview
Dependencies
Maintainers
0
Versions
379
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bam32bittheme - npm Package Compare versions

Comparing version 2.1.106-beta.1 to 2.1.106-beta.2

31

dist/components/Table.js

@@ -93,16 +93,21 @@ "use strict";

};
(0, _react.useEffect)(() => {
const visibility = {};
const areRowsEmpty = rows.every(row => columns.every(column => !row[column.field]));
columns.forEach(column => {
const hasCustomCell = !!column.Cell && !column.accessorFn; // Eğer özel bir Cell varsa ve accessorFn yoksa
const isColumnEmpty = rows.every(row => !row[column.field]);
// Eğer satırlar tamamen boşsa tüm kolonlar görünür, aksi halde Cell'e ve boşluğa göre kontrol
visibility[column.field] = areRowsEmpty || hasCustomCell || !isColumnEmpty;
});
if (setColumnVisibility && Object.keys(columnVisibility).length === 0) {
setColumnVisibility(visibility); // Sütun görünürlüğünü güncelle
}
}, [columns, rows]);
//buna gerek kalmadı
// useEffect(() => {
// const visibility = {};
// const areRowsEmpty = rows.every((row) => columns.every((column) => !row[column.field]));
// columns.forEach((column) => {
// const hasCustomCell = !!column.Cell && !column.accessorFn; // Eğer özel bir Cell varsa ve accessorFn yoksa
// const isColumnEmpty = rows.every((row) => !row[column.field]);
// // Eğer satırlar tamamen boşsa tüm kolonlar görünür, aksi halde Cell'e ve boşluğa göre kontrol
// visibility[column.field] = areRowsEmpty || hasCustomCell || !isColumnEmpty;
// });
// if (setColumnVisibility && Object.keys(columnVisibility).length === 0) {
// setColumnVisibility(visibility); // Sütun görünürlüğünü güncelle
// }
// }, [columns, rows]);
const tableColumns = (0, _react.useMemo)(() => {

@@ -109,0 +114,0 @@ return columns === null || columns === void 0 ? void 0 : columns.map(column => {

{
"name": "bam32bittheme",
"version": "2.1.106-beta.1",
"version": "2.1.106-beta.2",
"private": false,

@@ -5,0 +5,0 @@ "description": "32bit Theme for Material UI v5.x",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc