diff --git a/public/locales/en/settings.json b/public/locales/en/settings.json
index acafba11f..1899e0d26 100644
--- a/public/locales/en/settings.json
+++ b/public/locales/en/settings.json
@@ -20,9 +20,10 @@
"title": "Select a pinning service provider.",
"description": "Don’t see your pinning service provider? <1>Add a custom one.<1>"
},
- "pinningCustomModal": {
+ "pinningServiceModal": {
"title": "Configure a custom pinning service.",
"description": "Want to make your custom pinning service available to others? <1>Learn how.<1>",
+ "service": "Service",
"nickname": "Nickname",
"nicknamePlaceholder": "Name for your service",
"apiEndpoint": "API endpoint",
diff --git a/src/components/button/Button.css b/src/components/button/Button.css
index 389caebdf..3c6ed1ae2 100644
--- a/src/components/button/Button.css
+++ b/src/components/button/Button.css
@@ -16,3 +16,8 @@
box-shadow: initial;
cursor: default;
}
+
+.Button.link:focus {
+ outline: none;
+ box-shadow: none;
+}
diff --git a/src/components/pinning-manager/pinning-manager-modal/PinningManagerModal.js b/src/components/pinning-manager/pinning-manager-modal/PinningManagerModal.js
index e134bd697..8ee1ee19a 100644
--- a/src/components/pinning-manager/pinning-manager-modal/PinningManagerModal.js
+++ b/src/components/pinning-manager/pinning-manager-modal/PinningManagerModal.js
@@ -2,7 +2,7 @@ import React, { useState } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'redux-bundler-react'
import { withTranslation, Trans } from 'react-i18next'
-import PinningCustomModal from '../pinning-manager-custom-modal/PinningManagerCustomModal'
+import PinningServiceModal from '../pinning-manager-service-modal/PinningManagerServiceModal'
import './PinningManagerModal.css'
// Components
@@ -12,7 +12,8 @@ import Overlay from '../../overlay/Overlay'
const PinningManagerModal = ({ t, tReady, onLeave, className, availablePinningServices, ...props }) => {
const [isModalOpen, setModalOpen] = useState(false)
- const onModalOpen = () => setModalOpen(true)
+
+ const onCustomModalOpen = () => setModalOpen({ type: 'CUSTOM' })
const onModalClose = () => setModalOpen(false)
return (
@@ -21,7 +22,7 @@ const PinningManagerModal = ({ t, tReady, onLeave, className, availablePinningSe
{ t('pinningModal.title') }
{ availablePinningServices.map(({ icon, name }) => (
-
- Don’t see your pinning service provider? Add a custom one.
+ Don’t see your pinning service provider? Add a custom one.
@@ -38,8 +39,8 @@ const PinningManagerModal = ({ t, tReady, onLeave, className, availablePinningSe
{t('actions.cancel')}
-
-
+
+
)
diff --git a/src/components/pinning-manager/pinning-manager-custom-modal/PinningManagerCustomModal.css b/src/components/pinning-manager/pinning-manager-service-modal/PinningManagerServiceModal.css
similarity index 57%
rename from src/components/pinning-manager/pinning-manager-custom-modal/PinningManagerCustomModal.css
rename to src/components/pinning-manager/pinning-manager-service-modal/PinningManagerServiceModal.css
index 8699e31c4..c07aeecea 100644
--- a/src/components/pinning-manager/pinning-manager-custom-modal/PinningManagerCustomModal.css
+++ b/src/components/pinning-manager/pinning-manager-service-modal/PinningManagerServiceModal.css
@@ -1,5 +1,5 @@
-.pinningManagerCustomModalContainer {
+.pinningManagerServiceModalContainer {
display: grid;
grid-template-columns: repeat(2, 50%);
align-items: center;
@@ -7,10 +7,10 @@
padding: 20px 54px 0;
}
-.pinningManagerCustomModalContainer > * {
+.pinningManagerServiceModalContainer > * {
margin-bottom: 26px;
}
-.pinningManagerCustomModalContainer .white::placeholder {
+.pinningManagerServiceModalContainer .white::placeholder {
color: #fff;
}
diff --git a/src/components/pinning-manager/pinning-manager-custom-modal/PinningManagerCustomModal.js b/src/components/pinning-manager/pinning-manager-service-modal/PinningManagerServiceModal.js
similarity index 71%
rename from src/components/pinning-manager/pinning-manager-custom-modal/PinningManagerCustomModal.js
rename to src/components/pinning-manager/pinning-manager-service-modal/PinningManagerServiceModal.js
index 90a9c4b70..38d6fb4b0 100644
--- a/src/components/pinning-manager/pinning-manager-custom-modal/PinningManagerCustomModal.js
+++ b/src/components/pinning-manager/pinning-manager-service-modal/PinningManagerServiceModal.js
@@ -8,9 +8,9 @@ import { useForm } from 'react-hook-form'
// Components
import { Modal, ModalBody, ModalActions } from '../../modal/Modal'
import Button from '../../button/Button'
-import './PinningManagerCustomModal.css'
+import './PinningManagerServiceModal.css'
-const PinningManagerCustomModal = ({ t, onLeave, className, tReady, ...props }) => {
+const PinningManagerServiceModal = ({ t, onLeave, className, service, tReady, ...props }) => {
const { register, errors, handleSubmit } = useForm()
const inputClass = 'w-100 lh-copy f5 ph2 pv1 input-reset ba b--black-20 br1 focus-outline'
const onSubmit = data => alert(`This is a WIP feature, with data: ${JSON.stringify(data)}`)
@@ -19,11 +19,23 @@ const PinningManagerCustomModal = ({ t, onLeave, className, tReady, ...props })