@@ -71,7 +71,7 @@ export const ListGuesser = <RecordType extends RaRecord = any>(
7171 debounce = { debounce }
7272 disableAuthentication = { disableAuthentication }
7373 disableSyncWithLocation = { disableSyncWithLocation }
74- empty = { empty === undefined ? < GuesserEmpty /> : empty }
74+ empty = { empty === undefined ? < ListGuesserEmpty /> : empty }
7575 exporter = { exporter }
7676 filter = { filter }
7777 filterDefaultValues = { filterDefaultValues }
@@ -157,18 +157,18 @@ ${inferredChild.getRepresentation()}
157157 return < ListView { ...rest } > { child } </ ListView > ;
158158} ;
159159
160- const GuesserEmpty = ( inProps : GuesserEmptyProps ) => {
160+ const ListGuesserEmpty = ( inProps : ListGuesserEmptyProps ) => {
161161 const props = useThemeProps ( {
162162 props : inProps ,
163- name : GUESSER_EMPTY_PREFIX ,
163+ name : LIST_GUESSER_EMPTY_PREFIX ,
164164 } ) ;
165165 const { className } = props ;
166166 const translate = useTranslate ( ) ;
167167
168168 return (
169- < GuesserEmptyRoot className = { className } >
170- < Box className = { GuesserEmptyClasses . message } >
171- < Inbox className = { GuesserEmptyClasses . icon } />
169+ < ListGuesserEmptyRoot className = { className } >
170+ < Box className = { ListGuesserEmptyClasses . message } >
171+ < Inbox className = { ListGuesserEmptyClasses . icon } />
172172 < Typography variant = "h4" paragraph >
173173 { translate ( 'ra.guesser.empty.title' , {
174174 _ : 'No data to display' ,
@@ -180,32 +180,32 @@ const GuesserEmpty = (inProps: GuesserEmptyProps) => {
180180 } ) }
181181 </ Typography >
182182 </ Box >
183- </ GuesserEmptyRoot >
183+ </ ListGuesserEmptyRoot >
184184 ) ;
185185} ;
186186
187- interface GuesserEmptyProps {
187+ interface ListGuesserEmptyProps {
188188 className ?: string ;
189189}
190190
191- const GUESSER_EMPTY_PREFIX = 'RaGuesserEmpty ' ;
191+ const LIST_GUESSER_EMPTY_PREFIX = 'RaListGuesserEmpty ' ;
192192
193- const GuesserEmptyClasses = {
194- message : `${ GUESSER_EMPTY_PREFIX } -message` ,
195- icon : `${ GUESSER_EMPTY_PREFIX } -icon` ,
193+ const ListGuesserEmptyClasses = {
194+ message : `${ LIST_GUESSER_EMPTY_PREFIX } -message` ,
195+ icon : `${ LIST_GUESSER_EMPTY_PREFIX } -icon` ,
196196} ;
197197
198- const GuesserEmptyRoot = styled ( 'span' , {
199- name : GUESSER_EMPTY_PREFIX ,
198+ const ListGuesserEmptyRoot = styled ( 'span' , {
199+ name : LIST_GUESSER_EMPTY_PREFIX ,
200200 overridesResolver : ( props , styles ) => styles . root ,
201201} ) ( ( { theme } ) => ( {
202202 flex : 1 ,
203- [ `& .${ GuesserEmptyClasses . message } ` ] : {
203+ [ `& .${ ListGuesserEmptyClasses . message } ` ] : {
204204 textAlign : 'center' ,
205205 margin : '0 1em' ,
206206 color : ( theme . vars || theme ) . palette . text . disabled ,
207207 } ,
208- [ `& .${ GuesserEmptyClasses . icon } ` ] : {
208+ [ `& .${ ListGuesserEmptyClasses . icon } ` ] : {
209209 width : '9em' ,
210210 height : '9em' ,
211211 } ,
0 commit comments