Skip to content

Commit

Permalink
Remove obsolete DataGrid license code (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Jul 25, 2022
1 parent 4d00327 commit 660f0ea
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/toolpad-components/src/DataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
DataGridProProps,
DataGridPro,
GridToolbar,
LicenseInfo,
GridColumnResizeParams,
GridColumns,
GridRowsProp,
Expand Down Expand Up @@ -123,15 +122,6 @@ export function inferColumns(rows: GridRowsProp): GridColumns {
}));
}

const LICENSE =
typeof window !== 'undefined'
? window.document.querySelector('meta[name=x-data-grid-pro-license]')?.getAttribute('content')
: null;

if (LICENSE) {
LicenseInfo.setLicenseKey(LICENSE);
}

const EMPTY_COLUMNS: GridColumns = [];
const EMPTY_ROWS: GridRowsProp = [];

Expand Down

0 comments on commit 660f0ea

Please sign in to comment.