File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export function useRowSelection() {
2323 const rowSelectionChangeContext = useContext ( RowSelectionChangeContext ) ;
2424
2525 if ( rowSelectionContext === undefined || rowSelectionChangeContext === undefined ) {
26- throw new Error ( 'useRowSelection must be used within DataGrid cells ' ) ;
26+ throw new Error ( 'useRowSelection must be used within renderCell ' ) ;
2727 }
2828
2929 return {
@@ -55,7 +55,7 @@ export function useHeaderRowSelection() {
5555 const headerRowSelectionChangeContext = useContext ( HeaderRowSelectionChangeContext ) ;
5656
5757 if ( headerRowSelectionContext === undefined || headerRowSelectionChangeContext === undefined ) {
58- throw new Error ( 'useHeaderRowSelection must be used within DataGrid cells ' ) ;
58+ throw new Error ( 'useHeaderRowSelection must be used within renderHeaderCell ' ) ;
5959 }
6060
6161 return {
You can’t perform that action at this time.
0 commit comments