Skip to content

Commit

Permalink
chore: adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
KarineBrandelli committed Jul 3, 2024
1 parent 73cb11b commit 530da92
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 21 deletions.
12 changes: 3 additions & 9 deletions src/core/data-display/data-table/data-table-field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,7 @@ export const DataTableField = <D extends Record<string, unknown>>(
(event.target as HTMLElement).closest('input[type="checkbox"]') !==
null

if (
!isCheckboxClick &&
(!checkboxProps?.checkRow || !checkboxProps.checkRow[index])
) {
if (!isCheckboxClick && !checkboxProps?.checkRow?.[index]) {
handleSelect(index)
}
}
Expand All @@ -126,8 +123,7 @@ export const DataTableField = <D extends Record<string, unknown>>(
return (
<TableCellRows key={i} align='center'>
{column.editable &&
checkboxProps?.checkRow &&
checkboxProps.checkRow[index] ? (
checkboxProps?.checkRow?.[index] ? (
<TextField
fullWidth
key={`${column.field}-${i}`}
Expand Down Expand Up @@ -173,9 +169,7 @@ export const DataTableField = <D extends Record<string, unknown>>(
<RowTable
key={index}
className={
checkboxProps?.checkRow && checkboxProps.checkRow[index]
? 'no-hover'
: ''
checkboxProps?.checkRow?.[index] ? 'no-hover' : ''
}
onClick={event => handleTableRow(event, index)}>
{checkbox && (
Expand Down
24 changes: 12 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3773,9 +3773,9 @@ acorn@^7.4.1:
integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==

acorn@^8.1.0, acorn@^8.11.0, acorn@^8.11.3, acorn@^8.12.0, acorn@^8.7.1, acorn@^8.8.1, acorn@^8.8.2, acorn@^8.9.0:
version "8.12.0"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.0.tgz#1627bfa2e058148036133b8d9b51a700663c294c"
integrity sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw==
version "8.12.1"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.1.tgz#71616bdccbe25e27a54439e0046e89ca76df2248"
integrity sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==

address@^1.0.1:
version "1.2.2"
Expand Down Expand Up @@ -4401,9 +4401,9 @@ camelize@^1.0.0:
integrity sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==

caniuse-lite@^1.0.30001629:
version "1.0.30001639"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001639.tgz#972b3a6adeacdd8f46af5fc7f771e9639f6c1521"
integrity sha512-eFHflNTBIlFwP2AIKaYuBQN/apnUoKNhBdza8ZnW/h2di4LCZ4xFqYlxUxo+LQ76KFI1PGcC1QDxMbxTZpSCAg==
version "1.0.30001640"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001640.tgz#32c467d4bf1f1a0faa63fc793c2ba81169e7652f"
integrity sha512-lA4VMpW0PSUrFnkmVuEKBUovSWKhj7puyCg8StBChgu298N1AtuF1sKWEvfDuimSEDbhlb/KqPKC3fs1HbuQUA==

case-sensitive-paths-webpack-plugin@^2.4.0:
version "2.4.0"
Expand Down Expand Up @@ -8483,9 +8483,9 @@ pkg-dir@^7.0.0:
find-up "^6.3.0"

pkg-types@^1.1.1:
version "1.1.2"
resolved "https://registry.yarnpkg.com/pkg-types/-/pkg-types-1.1.2.tgz#3e211ecec23516f59323ba058ec21cbc533ff81a"
integrity sha512-VEGf1he2DR5yowYRl0XJhWJq5ktm9gYIsH+y8sNJpHlxch7JPDaufgrsl4vYjd9hMUY8QVjoNncKbow9I7exyA==
version "1.1.3"
resolved "https://registry.yarnpkg.com/pkg-types/-/pkg-types-1.1.3.tgz#161bb1242b21daf7795036803f28e30222e476e3"
integrity sha512-+JrgthZG6m3ckicaOB74TwQ+tBWsFl3qVQg7mN8ulwSOElJ7gBhKzj2VkCPnZ4NlF6kEquYU+RIYNVAvzd54UA==
dependencies:
confbox "^0.1.7"
mlly "^1.7.1"
Expand Down Expand Up @@ -10177,9 +10177,9 @@ untildify@^4.0.0:
integrity sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==

update-browserslist-db@^1.0.16:
version "1.0.16"
resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz#f6d489ed90fb2f07d67784eb3f53d7891f736356"
integrity sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==
version "1.1.0"
resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz#7ca61c0d8650766090728046e416a8cde682859e"
integrity sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==
dependencies:
escalade "^3.1.2"
picocolors "^1.0.1"
Expand Down

0 comments on commit 530da92

Please sign in to comment.