Cleanup unneeded "require" (#1169)

This commit is contained in:
Alexey Sachkov authored and GitHub committed 2020-12-26 21:29:49 -05:00
1 parent 8e1951ba67
commit a58384d8d1
8 files changed
+2 -23

No files matched your search

+1 -8
View File
@@ -1,10 +1,6 @@
const React = require('react');
const createClass = require('create-react-class');
const _ = require('lodash');
const cx = require('classnames');
//var striptags = require('striptags');
const Nav = require('naturalcrit/nav/nav.jsx');
const MAX_URL_SIZE = 2083;
@@ -31,10 +27,7 @@ const RedditShare = createClass({
const url = [
MAIN_URL,
`title=${encodeURIComponent(this.props.brew.title ? this.props.brew.title : 'Check out my brew!')}`,
`text=${encodeURIComponent(this.props.brew.text)}`
].join('&');
window.open(url, '_blank');
@@ -49,4 +42,4 @@ const RedditShare = createClass({
});
module.exports = RedditShare;
module.exports = RedditShare;