Spaces:
Sleeping
Sleeping
Update src/components/deploy-button/deploy-button.tsx
Browse files
src/components/deploy-button/deploy-button.tsx
CHANGED
|
@@ -11,7 +11,13 @@ const downloadFile = (filename: string, content: string) => {
|
|
| 11 |
URL.revokeObjectURL(url);
|
| 12 |
};
|
| 13 |
|
| 14 |
-
function DeployButton({
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
const [loading, setLoading] = useState(false);
|
| 16 |
|
| 17 |
const handleDownload = () => {
|
|
@@ -34,7 +40,7 @@ function DeployButton({ html }: { html: string }) {
|
|
| 34 |
onClick={handleDownload}
|
| 35 |
disabled={loading}
|
| 36 |
>
|
| 37 |
-
{loading ? "Preparing..." : "Download
|
| 38 |
</button>
|
| 39 |
</div>
|
| 40 |
);
|
|
|
|
| 11 |
URL.revokeObjectURL(url);
|
| 12 |
};
|
| 13 |
|
| 14 |
+
function DeployButton({
|
| 15 |
+
html,
|
| 16 |
+
error, // ← dummy, unused
|
| 17 |
+
}: {
|
| 18 |
+
html: string;
|
| 19 |
+
error?: boolean; // ← accept but ignore
|
| 20 |
+
}) {
|
| 21 |
const [loading, setLoading] = useState(false);
|
| 22 |
|
| 23 |
const handleDownload = () => {
|
|
|
|
| 40 |
onClick={handleDownload}
|
| 41 |
disabled={loading}
|
| 42 |
>
|
| 43 |
+
{loading ? "Preparing..." : "Download Project"}
|
| 44 |
</button>
|
| 45 |
</div>
|
| 46 |
);
|