@yogiswara/honcho-editor-ui 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,7 +9,7 @@ export interface Controller {
|
|
|
9
9
|
onGetImage(firebaseUid: string, imageID: string): Promise<Gallery>;
|
|
10
10
|
getImageList(firebaseUid: string): Promise<Gallery[]>;
|
|
11
11
|
syncConfig(firebaseUid: string): Promise<void>;
|
|
12
|
-
handleBack(firebaseUid: string): void;
|
|
12
|
+
handleBack(firebaseUid: string, imageID: string): void;
|
|
13
13
|
getPresets(firebaseUid: string): Promise<Preset[]>;
|
|
14
14
|
createPreset(firebaseUid: string, name: string, settings: AdjustmentState): Promise<Preset>;
|
|
15
15
|
deletePreset(firebaseUid: string, presetId: string): Promise<void>;
|
|
@@ -528,8 +528,8 @@ export function useHonchoEditor(controller, initImageId, firebaseUid) {
|
|
|
528
528
|
}
|
|
529
529
|
}, []);
|
|
530
530
|
const handleBackCallback = useCallback(() => {
|
|
531
|
-
controller.handleBack(firebaseUid);
|
|
532
|
-
}, [controller]);
|
|
531
|
+
controller.handleBack(firebaseUid, currentImageId);
|
|
532
|
+
}, [controller, firebaseUid, currentImageId]);
|
|
533
533
|
// MARK: - UI Handlers (Moved from page.tsx)
|
|
534
534
|
// Header and Dialog Handlers
|
|
535
535
|
const handleHeaderMenuClick = (event) => setHeaderMenuAnchorEl(event.currentTarget);
|