File tree 1 file changed +8
-4
lines changed
packages/ra-ui-materialui/src/list/filter
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ import {
10
10
Pagination ,
11
11
TextField ,
12
12
TextInput ,
13
+ TopToolbar ,
13
14
} from 'react-admin' ;
14
- import { Stack } from '@mui/material' ;
15
15
import fakerestDataProvider from 'ra-data-fakerest' ;
16
16
17
17
export default { title : 'ra-ui-materialui/list/filter/FilterButton' } ;
@@ -103,13 +103,13 @@ const data = {
103
103
104
104
const ListToolbar = ( props : { postFilters : React . ReactElement [ ] } ) => {
105
105
return (
106
- < Stack direction = "row" justifyContent = "space-between" >
106
+ < TopToolbar >
107
107
< FilterForm filters = { props . postFilters } />
108
108
< div >
109
109
< FilterButton filters = { props . postFilters } />
110
110
< CreateButton />
111
111
</ div >
112
- </ Stack >
112
+ </ TopToolbar >
113
113
) ;
114
114
} ;
115
115
const PostList = ( props : { postFilters : React . ReactElement [ ] } ) => (
@@ -127,7 +127,11 @@ const PostList = (props: { postFilters: React.ReactElement[] }) => (
127
127
export const Basic = ( ) => {
128
128
const postFilters : React . ReactElement [ ] = [
129
129
< TextInput label = "Search" source = "q" alwaysOn /> ,
130
- < TextInput label = "Title" source = "title" defaultValue = "Hello, World!" /> ,
130
+ < TextInput
131
+ label = "Title"
132
+ source = "title"
133
+ defaultValue = "Accusantium qui nihil voluptatum quia voluptas maxime ab similique"
134
+ /> ,
131
135
] ;
132
136
return (
133
137
< Admin dataProvider = { fakerestDataProvider ( data ) } >
You can’t perform that action at this time.
0 commit comments