From a4405f72eae284ece25ff703369a2442248a0036 Mon Sep 17 00:00:00 2001 From: Hayden Date: Sun, 21 Feb 2021 16:38:30 -0900 Subject: [PATCH] remove old snackbar --- frontend/src/App.vue | 3 -- frontend/src/components/UI/SnackBar.vue | 41 ------------------------- frontend/src/store/store.js | 17 ---------- 3 files changed, 61 deletions(-) delete mode 100644 frontend/src/components/UI/SnackBar.vue diff --git a/frontend/src/App.vue b/frontend/src/App.vue index b287bade6..40e365d35 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -32,7 +32,6 @@ - @@ -44,7 +43,6 @@ import Menu from "./components/UI/Menu"; import SearchBar from "./components/UI/SearchBar"; import AddRecipeFab from "./components/UI/AddRecipeFab"; -import SnackBar from "./components/UI/SnackBar"; import Vuetify from "./plugins/vuetify"; export default { name: "App", @@ -52,7 +50,6 @@ export default { components: { Menu, AddRecipeFab, - SnackBar, SearchBar, }, diff --git a/frontend/src/components/UI/SnackBar.vue b/frontend/src/components/UI/SnackBar.vue deleted file mode 100644 index 4ba38d20e..000000000 --- a/frontend/src/components/UI/SnackBar.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - - - \ No newline at end of file diff --git a/frontend/src/store/store.js b/frontend/src/store/store.js index 69dd0ff6a..13495c93b 100644 --- a/frontend/src/store/store.js +++ b/frontend/src/store/store.js @@ -22,10 +22,6 @@ const store = new Vuex.Store({ state: { // Auth isLoggedIn: true, - // Snackbar - snackActive: false, - snackText: "", - snackType: "warning", // All Recipe Data Store recentRecipes: [], @@ -37,14 +33,6 @@ const store = new Vuex.Store({ setIsLoggedIn(state, payload) { state.isLoggedIn = payload; }, - setSnackBar(state, payload) { - state.snackText = payload.text; - state.snackType = payload.type; - state.snackActive = true; - }, - setSnackActive(state, payload) { - state.snackActive = payload; - }, setRecentRecipes(state, payload) { state.recentRecipes = payload; @@ -72,11 +60,6 @@ const store = new Vuex.Store({ }, getters: { - // - getSnackText: state => state.snackText, - getSnackActive: state => state.snackActive, - getSnackType: state => state.snackType, - getRecentRecipes: state => state.recentRecipes, getMealPlanCategories: state => state.mealPlanCategories, getIsLoggedIn: state => state.isLoggedIn,