Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #462 from appsmithorg/chore/uppy-disable-informer
Browse files Browse the repository at this point in the history
chore: give control to user to enable/disable uppy informer
  • Loading branch information
albinAppsmith authored Apr 21, 2023
2 parents 63d67aa + 37d65c5 commit 757c365
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/hot-foxes-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@appsmithorg/design-system-old": patch
"@appsmithorg/design-system": patch
---

chore: give control to user to enable/disable uppy informer
3 changes: 3 additions & 0 deletions packages/design-system-old/src/DisplayImageUpload/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type Props = {
submit: (uppy: Uppy.Uppy) => void;
value: string;
label?: string;
disableUppyInformer?: boolean;
};

const Container = styled.div`
Expand Down Expand Up @@ -77,6 +78,7 @@ export default function DisplayImageUpload({
onRemove,
submit,
value,
disableUppyInformer,
}: Props) {
const [loadError, setLoadError] = useState(false);
const [isModalOpen, setIsModalOpen] = useState(false);
Expand Down Expand Up @@ -200,6 +202,7 @@ export default function DisplayImageUpload({
note="File size must not exceed 3 MB"
plugins={["ImageEditor"]}
uppy={uppy}
disableInformer={disableUppyInformer}
/>
</Dialog>
</Container>
Expand Down

0 comments on commit 757c365

Please sign in to comment.