github-actions[bot]
commited on
Commit
·
3679ff9
1
Parent(s):
28d65c9
Sync from GitHub: cff9d2103d559b06cd5ccba9969757ff860436aa
Browse files
frontend/src/components/ResultCard.jsx
CHANGED
|
@@ -7,7 +7,7 @@ const ResultCard = ({ result, imageData, processedImageData, onReprocess, isProc
|
|
| 7 |
const [dimensions, setDimensions] = useState({ width: 0, height: 0 });
|
| 8 |
const [signatureCrop, setSignatureCrop] = useState(null);
|
| 9 |
const [stampCrop, setStampCrop] = useState(null);
|
| 10 |
-
const [resolution, setResolution] = useState(100);
|
| 11 |
const [adjustedDataUrl, setAdjustedDataUrl] = useState(null);
|
| 12 |
const [previewDimensions, setPreviewDimensions] = useState({ width: 0, height: 0 });
|
| 13 |
const [currentImageData, setCurrentImageData] = useState(processedImageData || imageData);
|
|
|
|
| 7 |
const [dimensions, setDimensions] = useState({ width: 0, height: 0 });
|
| 8 |
const [signatureCrop, setSignatureCrop] = useState(null);
|
| 9 |
const [stampCrop, setStampCrop] = useState(null);
|
| 10 |
+
const [resolution, setResolution] = useState(result.processedResolution || 100);
|
| 11 |
const [adjustedDataUrl, setAdjustedDataUrl] = useState(null);
|
| 12 |
const [previewDimensions, setPreviewDimensions] = useState({ width: 0, height: 0 });
|
| 13 |
const [currentImageData, setCurrentImageData] = useState(processedImageData || imageData);
|