this is podracing
This commit is contained in:
1 parent
65d37eeb61
commit
f2294def05
12 files changed
+187
-169
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import { route } from 'preact-router';
|
||||
import http from './http';
|
||||
|
||||
const actions = store => ({
|
||||
setUser: function setUser(state, user) {
|
||||
return { user };
|
||||
},
|
||||
|
||||
setOffers: function setOffers(state, offers) {
|
||||
return { offers };
|
||||
},
|
||||
|
||||
logout: async function logout() {
|
||||
await http.postLogout();
|
||||
route('/login');
|
||||
return { user: null };
|
||||
},
|
||||
});
|
||||
|
||||
export default actions;
|
||||
Reference in new issue
Block a user