Fix actual code errors listed by linter.
This commit is contained in:
parent
0f5a7b9606
commit
db292abe03
@ -339,7 +339,7 @@ export function updateUnpublishedEntryStatus(collection, slug, oldStatus, newSta
|
|||||||
}));
|
}));
|
||||||
dispatch(unpublishedEntryStatusChangePersisted(collection, slug, oldStatus, newStatus, transactionID));
|
dispatch(unpublishedEntryStatusChangePersisted(collection, slug, oldStatus, newStatus, transactionID));
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch((error) => {
|
||||||
dispatch(notifSend({
|
dispatch(notifSend({
|
||||||
message: `Failed to update status: ${ error }`,
|
message: `Failed to update status: ${ error }`,
|
||||||
kind: 'danger',
|
kind: 'danger',
|
||||||
|
@ -41,7 +41,8 @@ export default class AuthenticationPage extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleIdentity = () => {
|
handleIdentity = () => {
|
||||||
if (window.netlifyIdentity.currentUser()) {
|
const user = window.netlifyIdentity.currentUser();
|
||||||
|
if (user) {
|
||||||
this.props.onLogin(user);
|
this.props.onLogin(user);
|
||||||
} else {
|
} else {
|
||||||
window.netlifyIdentity.open();
|
window.netlifyIdentity.open();
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
export default () => (
|
export default () => (
|
||||||
<div class="nc-notFound-container">
|
<div className="nc-notFound-container">
|
||||||
<h2>Not Found</h2>
|
<h2>Not Found</h2>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import React from 'react';
|
||||||
import { fromJS } from 'immutable';
|
import { fromJS } from 'immutable';
|
||||||
import { markdownToSlate } from 'EditorWidgets/Markdown/serializers';
|
import { markdownToSlate } from 'EditorWidgets/Markdown/serializers';
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ export const Icon = props => {
|
|||||||
className = '',
|
className = '',
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
...remainingProps,
|
...remainingProps
|
||||||
} = props;
|
} = props;
|
||||||
const icon = icons[type];
|
const icon = icons[type];
|
||||||
const rotation = getRotation(icon.direction, direction)
|
const rotation = getRotation(icon.direction, direction)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user