From e4e137310c5a739d661d7546f8f2667d3bea3aa1 Mon Sep 17 00:00:00 2001 From: Robert Webb Date: Fri, 8 Mar 2024 05:52:16 -0800 Subject: [PATCH] Sample code in documentation was improperly typed (#212) See how the interface ExampleData has id:string set. --- .../pages/docs/components/advanced-data/data-grid/usage.mdx | 4 ++-- .../pages/docs/components/data-display/data-table/usage.mdx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/website/src/pages/docs/components/advanced-data/data-grid/usage.mdx b/apps/website/src/pages/docs/components/advanced-data/data-grid/usage.mdx index 9e37c7cf9..a1459145b 100644 --- a/apps/website/src/pages/docs/components/advanced-data/data-grid/usage.mdx +++ b/apps/website/src/pages/docs/components/advanced-data/data-grid/usage.mdx @@ -817,12 +817,12 @@ const columns: ColumnDef[] = [ const data: ExampleData[] = [{ { - id: 1, + id: '1', name: 'TaShya Charles', email: 'urna.nec.luctus@icloud.couk' }, { - id: 2, + id: '2', name: 'Donovan Mosley', email: 'lacinia.mattis.integer@icloud.couk', }, diff --git a/apps/website/src/pages/docs/components/data-display/data-table/usage.mdx b/apps/website/src/pages/docs/components/data-display/data-table/usage.mdx index c017b60c5..981f49f03 100644 --- a/apps/website/src/pages/docs/components/data-display/data-table/usage.mdx +++ b/apps/website/src/pages/docs/components/data-display/data-table/usage.mdx @@ -155,12 +155,12 @@ const columns: ColumnDef[] = [ const data: ExampleData[] = [ { - id: 1, + id: '1', name: 'TaShya Charles', email: 'urna.nec.luctus@icloud.couk' }, { - id: 2, + id: '2', name: 'Donovan Mosley', email: 'lacinia.mattis.integer@icloud.couk', },