FitTrackee/mpwo_client/src/reducers/initial.js

54 lines
807 B
JavaScript
Raw Normal View History

2018-04-29 18:23:46 +02:00
const emptyData = {
data: [],
}
export default {
message: '',
2018-01-01 11:10:39 +01:00
messages: [],
user: {
id: '',
username: '',
email: '',
createdAt: '',
isAdmin: false,
isAuthenticated: false,
2018-01-01 16:59:46 +01:00
firstName: '',
lastName: '',
bio: '',
location: '',
2018-01-01 21:54:03 +01:00
birthDate: '',
picture: false
},
formData: {
formData: {
2018-01-01 16:59:46 +01:00
username: '',
email: '',
password: '',
passwordConf: '',
}
},
formProfile: {
formProfile: {
firstName: '',
lastName: '',
bio: '',
location: '',
2018-01-01 17:50:12 +01:00
birthDate: '',
password: '',
2018-01-01 21:54:03 +01:00
passwordConf: '',
}
},
2018-05-02 19:02:39 +02:00
activities: {
...emptyData,
},
chartData: [],
2018-05-03 21:42:54 +02:00
// check if storing gpx content is OK
gpx: null,
2018-05-20 13:12:35 +02:00
records: {
...emptyData,
},
2018-04-29 18:23:46 +02:00
sports: {
...emptyData,
}
}