Skip to content

Commit

Permalink
T extends object
Browse files Browse the repository at this point in the history
  • Loading branch information
jongwony committed Nov 3, 2024
1 parent 0e07b5d commit 8c2e9c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/form/CropImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type DisplayCroppedImageProps<T> = {
setFormData: Dispatch<SetStateAction<T>>;
};

export const DisplayCroppedImage = <T extends {}>({ setFormData }: DisplayCroppedImageProps<T>) => {
export const DisplayCroppedImage = <T extends object>({ setFormData }: DisplayCroppedImageProps<T>) => {
const { croppedImage } = useImageContext();

useEffect(() => {
Expand Down

0 comments on commit 8c2e9c7

Please sign in to comment.