summaryrefslogtreecommitdiff
path: root/src/pages/blobs/_components
diff options
context:
space:
mode:
authorElad Rosenheim <eladroz@users.noreply.github.com>2024-04-23 19:48:09 +0300
committerGitHub <noreply@github.com>2024-04-23 19:48:09 +0300
commit6eb143cda881ba4dd26ab84bd85673f0fe94c1b8 (patch)
treed946a3b4b567f0ee2590c9b45d3e2673db89626f /src/pages/blobs/_components
parente028782c14356a5efaaa72b01cf34c30a4357df6 (diff)
Support disabling uploads + fonts fix (#11)
* Inline Netlify logo, preload fonts * Support disabling blobs upload + fonts fix
Diffstat (limited to 'src/pages/blobs/_components')
-rw-r--r--src/pages/blobs/_components/NewShape.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/blobs/_components/NewShape.tsx b/src/pages/blobs/_components/NewShape.tsx
index 05f9e6f..a141177 100644
--- a/src/pages/blobs/_components/NewShape.tsx
+++ b/src/pages/blobs/_components/NewShape.tsx
@@ -1,7 +1,7 @@
import { useState, useEffect } from 'react';
import type { Dispatch, SetStateAction } from 'react';
import ShapePreview from './ShapePreview.tsx';
-import { generateBlob } from '../../../utils';
+import { generateBlob, uploadDisabled } from '../../../utils';
import type { BlobProps } from '../../../types.ts';
interface Props {
@@ -51,7 +51,7 @@ export default function NewShape(props: Props) {
<button className="btn btn-primary" onClick={randomizeBlob}>
Randomize
</button>
- <button className="btn btn-primary" onClick={uploadBlob} disabled={wasUploaded || !blobData}>
+ <button className="btn btn-primary" onClick={uploadBlob} disabled={uploadDisabled || wasUploaded || !blobData}>
Upload
</button>
</div>