|
|
|
@ -6,7 +6,7 @@ const width = Dimensions.get("window").width; |
|
|
|
|
const initialState = { |
|
|
|
|
ltr: false, |
|
|
|
|
theme: null, |
|
|
|
|
mobile : width < 720, |
|
|
|
|
mobile: width < 720, |
|
|
|
|
homeData: [], |
|
|
|
|
newProducts: [], |
|
|
|
|
levels: [], |
|
|
|
@ -43,7 +43,7 @@ const initialState = { |
|
|
|
|
categories: null, |
|
|
|
|
bookSection: null, |
|
|
|
|
grades: { |
|
|
|
|
0: 'پایه تحصیلی', |
|
|
|
|
0: "پایه تحصیلی", |
|
|
|
|
// _0: "پیش دبستان",
|
|
|
|
|
1: "اول", |
|
|
|
|
2: "دوم", |
|
|
|
@ -79,7 +79,7 @@ const publicApi = (state = initialState, action) => { |
|
|
|
|
let { type, data } = action; |
|
|
|
|
switch (type) { |
|
|
|
|
case "public/setLtr": |
|
|
|
|
return { ...state, ltr : true }; |
|
|
|
|
return { ...state, ltr: true }; |
|
|
|
|
case "public/setIsDark": |
|
|
|
|
AsyncStorage.setItem("theme", data); |
|
|
|
|
return { ...state, location: false, error: null, theme: data }; |
|
|
|
|