aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2020-05-12 22:30:23 -0700
committerjackyzha0 <[email protected]>2020-05-12 22:30:23 -0700
commit93a5b395effd88a783ef4bcd4162de281f6281ee (patch)
treee098a67ba5d386a2d065c17eae053a613942bd21
parentabstract http funcs into helper (diff)
downloadctrl-v-93a5b395effd88a783ef4bcd4162de281f6281ee.tar.xz
ctrl-v-93a5b395effd88a783ef4bcd4162de281f6281ee.zip
fix dir
-rw-r--r--frontend/src/components/NewPaste.js2
-rw-r--r--frontend/src/components/ViewPaste.js2
-rw-r--r--frontend/src/helpers/httpHelper.js (renamed from frontend/src/components/httpHelper.js)0
3 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/components/NewPaste.js b/frontend/src/components/NewPaste.js
index dbcc5a7..1409c22 100644
--- a/frontend/src/components/NewPaste.js
+++ b/frontend/src/components/NewPaste.js
@@ -3,7 +3,7 @@ import { TitleInput, PasteInput } from './Inputs'
import OptionsContainer from './Options'
import { Redirect } from 'react-router-dom'
import Error from './Err'
-import { PostNewPaste } from './httpHelper'
+import { PostNewPaste } from '../helpers/httpHelper'
class NewPaste extends React.Component {
constructor(props) {
diff --git a/frontend/src/components/ViewPaste.js b/frontend/src/components/ViewPaste.js
index 6a2be4c..d7bd355 100644
--- a/frontend/src/components/ViewPaste.js
+++ b/frontend/src/components/ViewPaste.js
@@ -3,7 +3,7 @@ import Error from './Err';
import { TitleInput, PasteInput } from './Inputs';
import PasteInfo from './PasteInfo';
import PasswordModal from './PasswordModal'
-import { FetchPaste, FetchPasswordPaste } from './httpHelper'
+import { FetchPaste, FetchPasswordPaste } from '../helpers/httpHelper'
const RENDER_MODES = Object.freeze({
RAW: 'raw text',
diff --git a/frontend/src/components/httpHelper.js b/frontend/src/helpers/httpHelper.js
index 696980c..696980c 100644
--- a/frontend/src/components/httpHelper.js
+++ b/frontend/src/helpers/httpHelper.js