diff --git a/frontend/src/components/upload/modals/showCreateUploadModal.tsx b/frontend/src/components/upload/modals/showCreateUploadModal.tsx index 85c3b325a..c9a44ad74 100644 --- a/frontend/src/components/upload/modals/showCreateUploadModal.tsx +++ b/frontend/src/components/upload/modals/showCreateUploadModal.tsx @@ -29,8 +29,8 @@ const showCreateUploadModal = ( modals: ModalsContextProps, options: { isUserSignedIn: boolean; - ALLOW_UNAUTHENTICATED_SHARES: boolean; - ENABLE_EMAIL_RECIPIENTS: boolean; + allowUnauthenticatedShares: boolean; + enableEmailRecepients: boolean; }, uploadCallback: ( id: string, @@ -62,15 +62,13 @@ const CreateUploadModalBody = ({ ) => void; options: { isUserSignedIn: boolean; - ALLOW_UNAUTHENTICATED_SHARES: boolean; - ENABLE_EMAIL_RECIPIENTS: boolean; + allowUnauthenticatedShares: boolean; + enableEmailRecepients: boolean; }; }) => { const modals = useModals(); - const [showNotSignedInAlert, setShowNotSignedInAlert] = useState( - options.ENABLE_EMAIL_RECIPIENTS - ); + const [showNotSignedInAlert, setShowNotSignedInAlert] = useState(true); const validationSchema = yup.object().shape({ link: yup @@ -230,7 +228,7 @@ const CreateUploadModalBody = ({ {ExpirationPreview({ form })} - {options.ENABLE_EMAIL_RECIPIENTS && ( + {options.enableEmailRecepients && ( Email recipients diff --git a/frontend/src/pages/upload.tsx b/frontend/src/pages/upload.tsx index 2c86c1c8d..390b07d2a 100644 --- a/frontend/src/pages/upload.tsx +++ b/frontend/src/pages/upload.tsx @@ -105,21 +105,19 @@ const Upload = () => {