Skip to content

Commit

Permalink
Merge pull request #9831 from marmelab/cleanup-core-deps
Browse files Browse the repository at this point in the history
Avoid using MUI in ra-core
  • Loading branch information
fzaninotto authored May 6, 2024
2 parents 1f71769 + a7c7db5 commit 6199072
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import {
screen,
act,
} from '@testing-library/react';
// TODO: we shouldn't import mui components in ra-core
import { TextField } from '@mui/material';

import { testDataProvider } from '../../dataProvider';
import { memoryStore } from '../../store';
Expand Down Expand Up @@ -126,11 +124,8 @@ describe('useInfiniteListController', () => {

describe('setFilters', () => {
let childFunction = ({ setFilters, filterValues }) => (
// TODO: we shouldn't import mui components in ra-core
<TextField
inputProps={{
'aria-label': 'search',
}}
<input
aria-label="search"
type="text"
value={filterValues.q || ''}
onChange={event => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import {
screen,
act,
} from '@testing-library/react';
// TODO: we shouldn't import mui components in ra-core
import { TextField } from '@mui/material';
import { testDataProvider } from '../../dataProvider';

import { memoryStore } from '../../store';
Expand Down Expand Up @@ -110,11 +108,8 @@ describe('useListController', () => {

describe('setFilters', () => {
let childFunction = ({ setFilters, filterValues }) => (
// TODO: we shouldn't import mui components in ra-core
<TextField
inputProps={{
'aria-label': 'search',
}}
<input
aria-label="search"
type="text"
value={filterValues.q || ''}
onChange={event => {
Expand Down

0 comments on commit 6199072

Please sign in to comment.