fix: remove console.error and update uploadPhoto type signature in item creation
This commit is contained in:
@@ -31,7 +31,7 @@ interface UseItemCreateReturn {
|
||||
goToStep: (step: 'details' | 'photo' | 'preview' | 'confirm') => void;
|
||||
nextStep: () => void;
|
||||
prevStep: () => void;
|
||||
uploadPhoto: (file: File) => Promise<void>;
|
||||
uploadPhoto: (file: File, photoItemId?: number) => Promise<void>;
|
||||
submitItem: (userId: number) => Promise<any>;
|
||||
reset: () => void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user