← All changes
|
src/Agent/workflows/theme/components/UpdateLogoConfirm.jsx
+3
-3
3.0.5
→
trunk
View file →
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | import { ImageUploader } from '@agent/components/ImageUploader'; |
| 2 | -import { useWorkflowStore } from '@agent/state/workflows'; | |
| 2 | +import { useQuickEditStore } from '@quick-edit/state/store'; | |
| 3 | 3 | import { useCallback, useEffect, useRef, useState } from '@wordpress/element'; |
| 4 | 4 | import { __ } from '@wordpress/i18n'; |
| 5 | 5 | |
| 6 | 6 | const updateLogoSrcAttr = (url, cssFilter) => { |
| @@ -11,9 +11,9 @@ | ||
| 11 | 11 | }); |
| 12 | 12 | }; |
| 13 | 13 | |
| 14 | 14 | export const UpdateLogoConfirm = ({ onConfirm, onCancel }) => { |
| 15 | - const { block } = useWorkflowStore(); | |
| 15 | + const block = useQuickEditStore((s) => s.agentBlock); | |
| 16 | 16 | |
| 17 | 17 | const [originalLogoImgSrc, setOriginalLogoImgSrc] = useState(); |
| 18 | 18 | |
| 19 | 19 | useEffect(() => { |
| @@ -74,8 +74,8 @@ | ||
| 74 | 74 | ); |
| 75 | 75 | }; |
| 76 | 76 | |
| 77 | 77 | const Wrapper = ({ children }) => ( |
| 78 | - <div className="mb-4 ml-10 mr-2 flex flex-col rounded-lg border border-gray-300 bg-gray-50 rtl:ml-2 rtl:mr-10"> | |
| 78 | + <div className="mb-4 ms-2 me-2 flex flex-col rounded-lg border border-gray-300 bg-gray-50"> | |
| 79 | 79 | {children} |
| 80 | 80 | </div> |
| 81 | 81 | ); |