mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-02 05:52:25 -06:00
cleanup, fix most eslint errors
This commit is contained in:
parent
c37542932c
commit
17ffab3be9
11 changed files with 5 additions and 148 deletions
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const Promise = require("bluebird");
|
||||
const React = require("react");
|
||||
const Redux = require("react-redux");
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ module.exports = function EmojiDetailWrapped() {
|
|||
</>);
|
||||
};
|
||||
|
||||
function EmojiDetail({emoji, Form}) {
|
||||
function EmojiDetail({emoji}) {
|
||||
if (emoji == undefined) {
|
||||
return (<>
|
||||
<Link to={base}>
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ module.exports = function AdminSettings() {
|
|||
return dispatch(api.admin.fetchDomainBlocks());
|
||||
});
|
||||
}
|
||||
}, []);
|
||||
}, [dispatch, loadedBlockedInstances]);
|
||||
|
||||
if (!loadedBlockedInstances) {
|
||||
return (
|
||||
|
|
@ -315,7 +315,7 @@ function InstancePage({domain, Form}) {
|
|||
if (entry == undefined) {
|
||||
dispatch(api.admin.getEditableDomainBlock(domain));
|
||||
}
|
||||
}, []);
|
||||
}, [dispatch, domain, entry]);
|
||||
|
||||
const [errorMsg, setError] = React.useState("");
|
||||
const [statusMsg, setStatus] = React.useState("");
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const Promise = require("bluebird");
|
||||
const React = require("react");
|
||||
const Redux = require("react-redux");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue