Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
beverloo committed Feb 3, 2025
1 parent 585ed09 commit fd175bf
Show file tree
Hide file tree
Showing 4 changed files with 601 additions and 514 deletions.
6 changes: 5 additions & 1 deletion .ncurc
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"reject": [
"eslint",
// https://github.com/beverloo/volunteer-manager/issues/8
"@types/react",
"@types/react-dom",
"react",
"react-dom"
]
}
6 changes: 4 additions & 2 deletions app/admin/events/[event]/hotels/HotelAssignment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ function HotelAssignmentPersonSelect(props: HotelAssignmentPersonSelectProps) {
const { field, hasFocus, id } = props;

const context = useGridApiContext();
if (context.current === null)
throw new Error('The Grid API context is not available');

const handleAutocompleteChange = useCallback((event: unknown, value: string) => {
context.current.setEditCellValue({ id, field, value });
context.current!.setEditCellValue({ id, field, value });
}, [ context, field, id ]);

const handleInputChange = useCallback(
(event: React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>) => {
context.current.setEditCellValue({ id, field, value: event.currentTarget.value });
context.current!.setEditCellValue({ id, field, value: event.currentTarget.value });
}, [ context, field, id ]);

const ref = useRef<HTMLTextAreaElement | HTMLInputElement>();
Expand Down
Loading

0 comments on commit fd175bf

Please sign in to comment.