Browse Source

Fix node-fetch install directory

main
GreatBearShark 2 years ago
parent
commit
12b483e645
  1. 2
      package.json
  2. 21
      src/components/comment-node.tsx
  3. 5
      yarn.lock

2
package.json

@ -108,7 +108,7 @@
"jest-environment-jsdom-fourteen": "^1.0.1",
"jest-watch-typeahead": "^0.6.0",
"lint-staged": "^10.2.11",
"node-fetch": "^2.6.0",
"node-fetch": "^2.6.1",
"react-app-polyfill": "^1.0.6",
"react-docgen-typescript-loader": "^3.7.2",
"sortpack": "^2.1.6",

21
src/components/comment-node.tsx

@ -3,7 +3,7 @@ import { Link } from 'react-router-dom';
import {
CommentNode as CommentNodeI,
CommentLikeForm,
CommentForm as CommentFormI,
// CommentForm as CommentFormI,
EditUserMentionForm,
SaveCommentForm,
BanFromCommunityForm,
@ -599,7 +599,7 @@ class BaseCommentNode extends Component<CommentNodeProps, CommentNodeState> {
</PostActionButton>
</>
))}
{/* Admins and sitmods can ban from all */}
{/* Admins and sitemods can ban from all */}
{(this.canAdmin || this.canSitemod) && (
<>
{!this.isAdmin &&
@ -1353,4 +1353,21 @@ class BaseCommentNode extends Component<CommentNodeProps, CommentNodeState> {
}
}
class TestComp extends Component {
constructor(props) {
super(props);
this.state = {
loading: true,
};
}
stopLoading = () => {
this.setState({ loading: false });
};
render() {
return <button onClick={this.stopLoading}>Test</button>;
}
}
export const CommentNode = withTheme(BaseCommentNode);

5
yarn.lock

@ -10867,6 +10867,11 @@ [email protected]^2.6.0:
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.0.tgz#e633456386d4aa55863f676a7ab0daa8fdecb0fd"
integrity sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==
[email protected]^2.6.1:
version "2.6.1"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==
[email protected]:
version "0.9.0"
resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.9.0.tgz#d624050edbb44874adca12bb9a52ec63cb782579"

Loading…
Cancel
Save