diff --git a/store/Sidebar.js b/store/Sidebar.js new file mode 100644 index 0000000..16bab35 --- /dev/null +++ b/store/Sidebar.js @@ -0,0 +1,11 @@ +export const state = () => ({ + cardsShown: true +}) + +export const mutations = { + toggleCardsShown (state) { + console.log(state.cardsShown) + if (process.browser) localStorage.setItem('cardsShown', !state.cardsShown) + state.cardsShown = !state.cardsShown + } +} \ No newline at end of file diff --git a/store/index.js b/store/index.js new file mode 100644 index 0000000..28de64e --- /dev/null +++ b/store/index.js @@ -0,0 +1,7 @@ +export const state = () => ({ + +}) + +export const mutations = { + +} \ No newline at end of file