From 5bb2d57e00ef27367741315269a847f34fe048e7 Mon Sep 17 00:00:00 2001 From: Arpita Kate Date: Wed, 15 May 2024 11:45:20 +0000 Subject: [PATCH] Show pagination footer only if total items are greater than 10 --- package.json | 4 ++-- src/components/dataGrid/DataGridStoriesData.tsx | 6 +++++- yarn.lock | 8 ++++---- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 8165ee0..d8a7947 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@dellstorage/dell-design-react-common", "description": "Override CSS of Clarity-React components to align it with Dell design standards", - "version": "0.2.10", + "version": "0.2.11", "license": "Apache-2.0", "private": false, "outDir": "dist", @@ -12,7 +12,7 @@ "node": ">=16.14.1" }, "dependencies": { - "@dellstorage/clarity-react": "^1.2.13", + "@dellstorage/clarity-react": "^1.2.14", "@types/node": "^12.14.1", "bootstrap": "^5.2.0", "react": "^17.0.2", diff --git a/src/components/dataGrid/DataGridStoriesData.tsx b/src/components/dataGrid/DataGridStoriesData.tsx index efc57b6..2632dbd 100644 --- a/src/components/dataGrid/DataGridStoriesData.tsx +++ b/src/components/dataGrid/DataGridStoriesData.tsx @@ -244,7 +244,11 @@ const cellData = [ ['192.168.0.1', "xyz", "PI-12345672", "ECS EX400", "DHCP", "Data,Monitor"], ['192.168.0.1', "123", "PI-12345672", "ECS EX400", "DHCP", "Data,Monitor"], ['192.168.0.1', "123", "PI-12345672", "ECS EX400", "DHCP", "Data,Monitor"], - ['192.168.0.1', "klm", "PI-12345672", "ECS EX400", "DHCP", "Data,Monitor"] + ['192.168.0.1', "klm", "PI-12345672", "ECS EX400", "DHCP", "Data,Monitor"], + ['192.168.0.1', "fgh", "PI-12345672", "ECS EX400", "DHCP", "Data,Monitor"], + ['192.168.0.1', "uvx", "PI-12345672", "ECS EX400", "DHCP", "Data,Monitor"], + ['192.168.0.1', "kssdlm", "PI-12345672", "ECS EX400", "DHCP", "Data,Monitor"], + ['192.168.0.1', "lmn", "PI-12345672", "ECS EX400", "DHCP", "Data,Monitor"], ]; // Function to get row data export function getRowData() { diff --git a/yarn.lock b/yarn.lock index 3e3e991..c9d5305 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1337,10 +1337,10 @@ resolved "https://registry.yarnpkg.com/@csstools/normalize.css/-/normalize.css-10.1.0.tgz#f0950bba18819512d42f7197e56c518aa491cf18" integrity sha512-ij4wRiunFfaJxjB0BdrYHIH8FxBJpOwNPhhAcunlmPdXudL1WQV1qoP9un6JsEBAgQH+7UXyyjh0g7jTxXK6tg== -"@dellstorage/clarity-react@^1.2.13": - version "1.2.13" - resolved "https://registry.yarnpkg.com/@dellstorage/clarity-react/-/clarity-react-1.2.13.tgz#c5355efd6515d6875e9513cbd98b4fcadc469f45" - integrity sha512-IKu65gzeTNTUTWywP7enrOQ3SkSdym+gblbEYtXdV6B3iS5LmKxkehbRFIuzohxajGLilwftWDlwTLnC7welNw== +"@dellstorage/clarity-react@^1.2.14": + version "1.2.14" + resolved "https://registry.yarnpkg.com/@dellstorage/clarity-react/-/clarity-react-1.2.14.tgz#04c6ac3e1169fdba053984d11aa26dd8f3408093" + integrity sha512-E/O45+vFFpD3vHpkWX893pKpjSM1DZ892ltNNnP0J3RwGklrRsJJ7MxDh+QTmYhKKpKY6UAyBmJ1Ik3qwIRayw== dependencies: "@clr/icons" "12.0.8" "@clr/ui" "12.0.8"