Skip to content

Commit

Permalink
yarn docs:typescript:formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
cherniavskii committed Nov 17, 2022
1 parent c7b7bdd commit c98d499
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion docs/data/data-grid/components/CellWithPopover.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default function CellWithPopover() {
rowLength: 100,
maxColumns: 4,
});

const [anchorEl, setAnchorEl] = React.useState(null);
const [value, setValue] = React.useState('');

Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/components/CustomFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default function CustomFooter() {
rowLength: 4,
maxColumns: 6,
});

return (
<Box sx={{ width: '100%' }}>
<Box sx={{ height: 350, width: '100%', mb: 1 }}>
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/editing/AskConfirmationBeforeSave.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export default function AskConfirmationBeforeSave() {
// the dialog is fully open.
// noButtonRef.current?.focus();
};

const renderConfirmDialog = () => {
if (!promiseArguments) {
return null;
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/export/CustomExport.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ function JsonExportMenuItem(props) {
const blob = new Blob([jsonString], {
type: 'text/json',
});

exportBlob(blob, 'DataGrid_demo.json');

// Hide the export menu after the export
Expand Down
2 changes: 0 additions & 2 deletions docs/data/data-grid/export/ExcelCustomExport.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,11 @@ const exceljsPreProcess = ({ workbook, worksheet }) => {
name: 'Arial Black',
size: 14,
};

worksheet.getCell('A1').alignment = {
vertical: 'top',
horizontal: 'center',
wrapText: true,
};

worksheet.addRow([]);
};
const exceljsPostProcess = ({ worksheet }) => {
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/overview/DataGridPremiumDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export default function DataGridPremiumDemo() {
'incoTerm',
],
});

const apiRef = useGridApiRef();

const initialState = useKeepGroupedColumnsHidden({
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/pagination/PageControlled.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default function PageControlled() {
rowLength: 100,
maxColumns: 6,
});

const [page, setPage] = React.useState(0);

return (
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/pagination/PageSizeControlled.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default function PageSizeControlled() {
rowLength: 500,
maxColumns: 6,
});

const [pageSize, setPageSize] = React.useState(25);

return (
Expand Down
1 change: 0 additions & 1 deletion docs/data/data-grid/style/AntDesignGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ export default function AntDesignGrid() {
rowLength: 10,
maxColumns: 10,
});

return (
<div style={{ height: 400, width: '100%' }}>
<StyledDataGrid
Expand Down
3 changes: 2 additions & 1 deletion docs/data/date-pickers/localization/LocalizedTimePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ const locales = ['en', 'ru', 'ar-sa'];
const ampmOptions = {
'undefined': undefined,
true: true,
false: false };
false: false
};

export default function LocalizedTimePicker() {
const [locale, setLocale] = React.useState('ru');
Expand Down

0 comments on commit c98d499

Please sign in to comment.