Skip to content

Commit

Permalink
Leftover linting from #1671
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicaschilling committed Oct 29, 2020
1 parent e2e2edd commit 2f38b3f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
10 changes: 5 additions & 5 deletions src/bundles/ipfs-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const ACTIONS = Enum.from([
// Notifier actions
'IPFS_CONNECT_FAILED',
'IPFS_CONNECT_SUCCEED',
'NOTIFY_DISMISSED',
'NOTIFY_DISMISSED'
])

/**
Expand Down Expand Up @@ -340,7 +340,7 @@ const selectors = {
/**
* @param {State} state
*/
selectIpfsPendingFirstConnection: state => state.ipfs.pendingFirstConnection,
selectIpfsPendingFirstConnection: state => state.ipfs.pendingFirstConnection
}

/**
Expand All @@ -354,7 +354,7 @@ const actions = {
* @returns {function(Context):Promise<boolean>}
*/
doTryInitIpfs: () => async ({ store }) => {
// There is a code in `bundles/retry-init.js` that reacts to `IPFS_INIT`
// There is a code in `bundles/retry-init.js` that reacts to `IPFS_INIT`
// action and attempts to retry.
try {
await store.doInitIpfs()
Expand Down Expand Up @@ -442,11 +442,11 @@ const actions = {
const succeeded = await context.store.doTryInitIpfs()
if (succeeded) {
context.dispatch({
type: ACTIONS.IPFS_CONNECT_SUCCEED,
type: ACTIONS.IPFS_CONNECT_SUCCEED
})
} else {
context.dispatch({
type: ACTIONS.IPFS_CONNECT_FAILED,
type: ACTIONS.IPFS_CONNECT_FAILED
})
}
context.dispatch({
Expand Down
2 changes: 1 addition & 1 deletion src/components/api-address-form/ApiAddressForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { checkValidAPIAddress } from '../../bundles/ipfs-provider'

const ApiAddressForm = ({ t, doUpdateIpfsApiAddress, ipfsApiAddress, ipfsInitFailed }) => {
const [value, setValue] = useState(asAPIString(ipfsApiAddress))
const initialIsValidApiAddress = !checkValidAPIAddress(value)
const initialIsValidApiAddress = !checkValidAPIAddress(value)
const [showFailState, setShowFailState] = useState(initialIsValidApiAddress || ipfsInitFailed)
const [isValidApiAddress, setIsValidApiAddress] = useState(initialIsValidApiAddress)

Expand Down
17 changes: 8 additions & 9 deletions src/settings/SettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,16 @@ export const SettingsPage = ({
<Helmet>
<title>{t('title')} | IPFS</title>
</Helmet>

{/* Enable a full screen loader after updating to a new IPFS API address.
* Will not show on consequent retries after a failure.
*/}
{ ipfsPendingFirstConnection
? <div className="absolute flex items-center justify-center w-100 h-100"
style={{ background: 'rgba(255, 255, 255, 0.5)', zIndex: '10' }}>
<ComponentLoader pastDelay />
</div>
: null }

{ ipfsPendingFirstConnection
? <div className="absolute flex items-center justify-center w-100 h-100"
style={{ background: 'rgba(255, 255, 255, 0.5)', zIndex: '10' }}>
<ComponentLoader pastDelay />
</div>
: null }

<Box className='mb3 pa4 joyride-settings-customapi'>
<div className='lh-copy charcoal'>
Expand Down Expand Up @@ -290,7 +289,7 @@ export class SettingsPageContainer extends React.Component {
const {
t, tReady, isConfigBlocked, ipfsConnected, configIsLoading, configLastError, configIsSaving,
configSaveLastSuccess, configSaveLastError, isIpfsDesktop, analyticsEnabled, doToggleAnalytics, toursEnabled,
handleJoyrideCallback, isCliTutorModeEnabled, doToggleCliTutorMode, ipfsPendingFirstConnection,
handleJoyrideCallback, isCliTutorModeEnabled, doToggleCliTutorMode, ipfsPendingFirstConnection
} = this.props
const { hasErrors, hasLocalChanges, hasExternalChanges, editableConfig, editorKey } = this.state
const hasSaveSucceded = this.isRecent(configSaveLastSuccess)
Expand Down

0 comments on commit 2f38b3f

Please sign in to comment.