Skip to content

Commit

Permalink
Exclude esm folder from icons alias (#2606)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Sep 1, 2023
1 parent d7c6725 commit 569aa83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/toolpad-app/src/server/toolpadAppBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export function createViteConfig({
alias: [
{
// FIXME(https://github.com/mui/material-ui/issues/35233)
find: /^@mui\/icons-material\/([^/]*)/,
find: /^@mui\/icons-material\/(?!esm\/)([^/]*)/,
replacement: '@mui/icons-material/esm/$1',
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NumberFormat, NumberFormatEditor } from '@mui/toolpad-core/numberFormat
import type { EditorProps } from '../../types';
import PropertyControl from '../../components/PropertyControl';

function GridColumnsPropEditor({
function NumberFormatPropEditor({
propType,
label,
value,
Expand All @@ -12,9 +12,11 @@ function GridColumnsPropEditor({
}: EditorProps<NumberFormat>) {
return (
<PropertyControl propType={propType}>
<NumberFormatEditor label={label} disabled={disabled} value={value} onChange={onChange} />
<span>
<NumberFormatEditor label={label} disabled={disabled} value={value} onChange={onChange} />
</span>
</PropertyControl>
);
}

export default GridColumnsPropEditor;
export default NumberFormatPropEditor;

0 comments on commit 569aa83

Please sign in to comment.