From 252900603e571b1a37168ecbfbeab87189b53ed4 Mon Sep 17 00:00:00 2001 From: Garrett Dawson <37080130+ggdawson@users.noreply.github.com> Date: Mon, 12 Feb 2024 13:01:10 -0700 Subject: [PATCH] fix(DataTable): make DataTableHeader.slug optional (#15738) --- .all-contributorsrc | 9 +++++++++ README.md | 3 +++ packages/react/src/components/DataTable/DataTable.tsx | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index 77c4f7f785b5..58d8d3326b1e 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -1415,6 +1415,15 @@ "contributions": [ "code" ] + }, + { + "login": "ggdawson", + "name": "Garrett Dawson", + "avatar_url": "https://avatars.githubusercontent.com/u/37080130?v=4", + "profile": "https://github.com/ggdawson", + "contributions": [ + "code" + ] } ], "commitConvention": "none" diff --git a/README.md b/README.md index 1264581aa702..9d35c271ad8a 100644 --- a/README.md +++ b/README.md @@ -275,6 +275,9 @@ check out our [Contributing Guide](/.github/CONTRIBUTING.md) and our
Alexandr Ovchinnikov

💻
J Thomas

💻 + +
Garrett Dawson

💻 + diff --git a/packages/react/src/components/DataTable/DataTable.tsx b/packages/react/src/components/DataTable/DataTable.tsx index 2622ff5b801f..f3b110acd444 100644 --- a/packages/react/src/components/DataTable/DataTable.tsx +++ b/packages/react/src/components/DataTable/DataTable.tsx @@ -91,7 +91,7 @@ export interface DataTableRow { export interface DataTableHeader { key: string; header: React.ReactNode; - slug: React.ReactElement; + slug?: React.ReactElement; } export interface DataTableRenderProps {