mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-01-29 01:28:59 -05:00
refactor: run formatter
This commit is contained in:
parent
7647a9f620
commit
f9774d82d8
2 changed files with 11 additions and 11 deletions
|
@ -25,7 +25,7 @@ import showCompletedReverseShareModal from "./showCompletedReverseShareModal";
|
||||||
const showCreateReverseShareModal = (
|
const showCreateReverseShareModal = (
|
||||||
modals: ModalsContextProps,
|
modals: ModalsContextProps,
|
||||||
showSendEmailNotificationOption: boolean,
|
showSendEmailNotificationOption: boolean,
|
||||||
getReverseShares: () => void
|
getReverseShares: () => void,
|
||||||
) => {
|
) => {
|
||||||
const t = translateOutsideContext();
|
const t = translateOutsideContext();
|
||||||
return modals.openModal({
|
return modals.openModal({
|
||||||
|
@ -67,7 +67,7 @@ const Body = ({
|
||||||
values.expiration_num + values.expiration_unit,
|
values.expiration_num + values.expiration_unit,
|
||||||
values.maxShareSize,
|
values.maxShareSize,
|
||||||
values.maxUseCount,
|
values.maxUseCount,
|
||||||
values.sendEmailNotification
|
values.sendEmailNotification,
|
||||||
)
|
)
|
||||||
.then(({ link }) => {
|
.then(({ link }) => {
|
||||||
modals.closeAll();
|
modals.closeAll();
|
||||||
|
@ -153,7 +153,7 @@ const Body = ({
|
||||||
expiresOn: t("account.reverseShare.expires-on"),
|
expiresOn: t("account.reverseShare.expires-on"),
|
||||||
neverExpires: t("account.reverseShare.never-expires"),
|
neverExpires: t("account.reverseShare.never-expires"),
|
||||||
},
|
},
|
||||||
form
|
form,
|
||||||
)}
|
)}
|
||||||
</Text>
|
</Text>
|
||||||
</div>
|
</div>
|
||||||
|
@ -177,7 +177,7 @@ const Body = ({
|
||||||
labelPosition="left"
|
labelPosition="left"
|
||||||
label={t("account.reverseShares.modal.send-email")}
|
label={t("account.reverseShares.modal.send-email")}
|
||||||
description={t(
|
description={t(
|
||||||
"account.reverseShares.modal.send-email.description"
|
"account.reverseShares.modal.send-email.description",
|
||||||
)}
|
)}
|
||||||
{...form.getInputProps("sendEmailNotification", {
|
{...form.getInputProps("sendEmailNotification", {
|
||||||
type: "checkbox",
|
type: "checkbox",
|
||||||
|
|
|
@ -38,7 +38,7 @@ const showCreateUploadModal = (
|
||||||
allowUnauthenticatedShares: boolean;
|
allowUnauthenticatedShares: boolean;
|
||||||
enableEmailRecepients: boolean;
|
enableEmailRecepients: boolean;
|
||||||
},
|
},
|
||||||
uploadCallback: (createShare: CreateShare) => void
|
uploadCallback: (createShare: CreateShare) => void,
|
||||||
) => {
|
) => {
|
||||||
const t = translateOutsideContext();
|
const t = translateOutsideContext();
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ const CreateUploadModalBody = ({
|
||||||
"link",
|
"link",
|
||||||
Buffer.from(Math.random().toString(), "utf8")
|
Buffer.from(Math.random().toString(), "utf8")
|
||||||
.toString("base64")
|
.toString("base64")
|
||||||
.substr(10, 7)
|
.substr(10, 7),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
@ -251,7 +251,7 @@ const CreateUploadModalBody = ({
|
||||||
neverExpires: t("upload.modal.completed.never-expires"),
|
neverExpires: t("upload.modal.completed.never-expires"),
|
||||||
expiresOn: t("upload.modal.completed.expires-on"),
|
expiresOn: t("upload.modal.completed.expires-on"),
|
||||||
},
|
},
|
||||||
form
|
form,
|
||||||
)}
|
)}
|
||||||
</Text>
|
</Text>
|
||||||
</>
|
</>
|
||||||
|
@ -266,7 +266,7 @@ const CreateUploadModalBody = ({
|
||||||
<Textarea
|
<Textarea
|
||||||
variant="filled"
|
variant="filled"
|
||||||
placeholder={t(
|
placeholder={t(
|
||||||
"upload.modal.accordion.description.placeholder"
|
"upload.modal.accordion.description.placeholder",
|
||||||
)}
|
)}
|
||||||
{...form.getInputProps("description")}
|
{...form.getInputProps("description")}
|
||||||
/>
|
/>
|
||||||
|
@ -290,7 +290,7 @@ const CreateUploadModalBody = ({
|
||||||
if (!query.match(/^\S+@\S+\.\S+$/)) {
|
if (!query.match(/^\S+@\S+\.\S+$/)) {
|
||||||
form.setFieldError(
|
form.setFieldError(
|
||||||
"recipients",
|
"recipients",
|
||||||
t("upload.modal.accordion.email.invalid-email")
|
t("upload.modal.accordion.email.invalid-email"),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
form.setFieldError("recipients", null);
|
form.setFieldError("recipients", null);
|
||||||
|
@ -316,7 +316,7 @@ const CreateUploadModalBody = ({
|
||||||
<PasswordInput
|
<PasswordInput
|
||||||
variant="filled"
|
variant="filled"
|
||||||
placeholder={t(
|
placeholder={t(
|
||||||
"upload.modal.accordion.security.password.placeholder"
|
"upload.modal.accordion.security.password.placeholder",
|
||||||
)}
|
)}
|
||||||
label={t("upload.modal.accordion.security.password.label")}
|
label={t("upload.modal.accordion.security.password.label")}
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
|
@ -327,7 +327,7 @@ const CreateUploadModalBody = ({
|
||||||
type="number"
|
type="number"
|
||||||
variant="filled"
|
variant="filled"
|
||||||
placeholder={t(
|
placeholder={t(
|
||||||
"upload.modal.accordion.security.max-views.placeholder"
|
"upload.modal.accordion.security.max-views.placeholder",
|
||||||
)}
|
)}
|
||||||
label={t("upload.modal.accordion.security.max-views.label")}
|
label={t("upload.modal.accordion.security.max-views.label")}
|
||||||
{...form.getInputProps("maxViews")}
|
{...form.getInputProps("maxViews")}
|
||||||
|
|
Loading…
Add table
Reference in a new issue