From adf7ec94dab3ad5afe92259b51987386d30f73ec Mon Sep 17 00:00:00 2001 From: Andrew Cherniavskyi Date: Wed, 11 Sep 2024 23:40:19 +0200 Subject: [PATCH] fix demo in codesandbox embed https://github.com/codesandbox/codesandbox-client/issues/8607 --- docs/data/data-grid/custom-columns/CustomColumnFullExample.js | 2 +- docs/data/data-grid/custom-columns/CustomColumnFullExample.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/data/data-grid/custom-columns/CustomColumnFullExample.js b/docs/data/data-grid/custom-columns/CustomColumnFullExample.js index 4482e579f84f..be7c002fb2b7 100644 --- a/docs/data/data-grid/custom-columns/CustomColumnFullExample.js +++ b/docs/data/data-grid/custom-columns/CustomColumnFullExample.js @@ -87,7 +87,7 @@ const columns = [ if (!value || typeof value !== 'number') { return value; } - return `${value.toLocaleString()}$`; + return `$${value.toLocaleString()}`; }, editable: true, }, diff --git a/docs/data/data-grid/custom-columns/CustomColumnFullExample.tsx b/docs/data/data-grid/custom-columns/CustomColumnFullExample.tsx index 7bacff043e3a..2f0fa78b81a4 100644 --- a/docs/data/data-grid/custom-columns/CustomColumnFullExample.tsx +++ b/docs/data/data-grid/custom-columns/CustomColumnFullExample.tsx @@ -92,7 +92,7 @@ const columns: GridColDef<(typeof rows)[number]>[] = [ if (!value || typeof value !== 'number') { return value; } - return `${value.toLocaleString()}$`; + return `$${value.toLocaleString()}`; }, editable: true, },