fix: set link default value to random (#192)

* fix: set link default value to random

* fix: add auto EOL and add conventional-changelog package

* feat: Adding reverse shares' shares a clickable link (#178)

* Add clickable link to reverse share's shares

* Ran format

* Apply suggestions from code review

* fix: set link default value to random (#181)

* fix: set link default value to random

* fix: add auto EOL and add conventional-changelog package

* Apply suggestions from code review

---------

Co-authored-by: Elias Schneider <login@eliasschneider.com>

* feat: Adding reverse share ability to copy the link (#179)

---------

Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
Pierre Bidet
2023-07-10 13:58:17 +02:00
committed by GitHub
parent adf0f8d57e
commit a1ea7c0265
12 changed files with 92 additions and 25 deletions

View File

@@ -62,6 +62,10 @@ const CreateUploadModalBody = ({
}) => {
const modals = useModals();
const generatedLink = Buffer.from(Math.random().toString(), "utf8")
.toString("base64")
.substr(10, 7);
const [showNotSignedInAlert, setShowNotSignedInAlert] = useState(true);
const validationSchema = yup.object().shape({
@@ -78,7 +82,7 @@ const CreateUploadModalBody = ({
});
const form = useForm({
initialValues: {
link: "",
link: generatedLink,
recipients: [] as string[],
password: undefined,
maxViews: undefined,