sw 1 mesiac pred
rodič
commit
20e7367fa2
1 zmenil súbory, kde vykonal 25 pridanie a 0 odobranie
  1. 25 0
      src/states/security/quotaModalSlice.ts

+ 25 - 0
src/states/security/quotaModalSlice.ts

@@ -0,0 +1,25 @@
+import { createSlice } from '@reduxjs/toolkit';
+
+interface QuotaModalState {
+  isQuotaAlertVisible: boolean;
+}
+
+const initialState: QuotaModalState = {
+  isQuotaAlertVisible: false,
+};
+
+const quotaModalSlice = createSlice({
+  name: 'quotaModal',
+  initialState,
+  reducers: {
+    showQuotaAlert: (state) => {
+      state.isQuotaAlertVisible = true;
+    },
+    hideQuotaAlert: (state) => {
+      state.isQuotaAlertVisible = false;
+    },
+  },
+});
+
+export const { showQuotaAlert, hideQuotaAlert } = quotaModalSlice.actions;
+export default quotaModalSlice.reducer;