move states to state.js and import them in origin

This commit is contained in:
Leon Bubova committed 2021-12-17 23:37:30 +01:00
1 parent f1e15b076c
commit d20483737a
2 files changed
+16 -3

No files matched your search

+6 -3
View File
@@ -1,6 +1,9 @@
const LIKED_STATE = "LIKED_STATE";
const DISLIKED_STATE = "DISLIKED_STATE";
const NEUTRAL_STATE = "NEUTRAL_STATE";
import {
LIKED_STATE,
DISLIKED_STATE,
NEUTRAL_STATE,
} from "./src/state";
let storedData = {
likes: 0,
+10
View File
@@ -0,0 +1,10 @@
const LIKED_STATE = "LIKED_STATE";
const DISLIKED_STATE = "DISLIKED_STATE";
const NEUTRAL_STATE = "NEUTRAL_STATE";
export {
LIKED_STATE,
DISLIKED_STATE,
NEUTRAL_STATE,
};